html

What am I doing wrong with my regex?

Hello, I am trying to capture "Rio Grande Do Leste" from: ... <h1>Rio Grande Do Leste<br /> ... using var myregexp = /<h1>()<br/; var nomeAldeiaDoAtaque = myregexp.exec(document); what am I doing wrong? update: 2 questions remain: 1) searching (document) didn´t produce any result, but changing it to (document.body.innerHTML) w...

Changing the size of the SVG image using JavaScript?

Hi, I have a .svg file that has the following code: <svg version="1.1" x="0" y="0" width="256" height="256" viewBox="0 0 335 394"> plus a ton more code (namespaces etc) that is unnecessary to this situation, but the problem I have is that I need to somehow alter that width and height (from 256px to arbitrary size) using JavaScript. T...

basic html css design of a box with image and title

Hi. I am not a very good designer. At least not with html and css. I have been using a very simple code like this: <fieldset style=\"color: #000000; border: 1px solid #000000; width: 225px; text-align: left; padding: 5px;\"> <legend style=\"color: #999999; font-weight: bold;\">Headline.</legend> <p>text</p> </fieldset> To output infor...

Dynamic width third column in three column layout

I'm working on a three column layout: <div id="first"></div> <div id="second"></div> <div id="third"></div> I'd like to make it so that the first two columns have a fixed width and that the third column takes up the rest of the space on the page. Just setting percentage widths for everything is an option, but not preferable. An optio...

Delphi with HTML/CSS interface

I want to develop a delphi application with an HTML/CSS graphical user interface, not necessarily running from within a web browser. I want to do this do create a richer graphical user interface with animations etc. and break away from normal VCL components / Windows look. Any suggestions? ...

Multiple radio buttons!

Hey guys, Just a simple one for most of you i imagine! How do I prevent a user being able to select multiple options when I use radio buttons? <input type='radio' name='one'>option1<br /> <input type='radio' name='two'>option2<br /> <input type='radio' name='three'>option3<br /> <input type='radio' name='four'>option4<br /> <input type...

Checkbox Stays Checked on Page Refresh

This a pretty simple question (I assume). Probably a repost, but I couldn't find the answer here... so here we go. I have a checkbox on a page that I want to default to "unchecked" (unless I specify otherwise in my php). When I refresh the page, if the box was checked, it will stay checked which is no-bueno because checking the box ...

How to align text flush with bottom of container using CSS?

In the following example, I want the bottom of the site name text "site name" and the bottom of the menu text "menu 1 menu 2 menu 3" to align flush with the bottom of the container they're in (header). As it is now, the sitename text is some number of pixels above it's container's bottom edge, while the menu text is a different number o...

Relative Positioning at bottom of the screen issue with Flex and different browsers

I have a flex component like this: <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" ... width="100%" height="100%" creationComplete="init()"> ....... <components:NavigationBar id="nagivationBar" left="0" bottom="0" /> This is supp...

Webkit Flaws? Why shouldn't Webkit be used as a baseline for HTML/CSS development?

I have started using Safari as a baseline for all of my web development projects, then using workarounds where appropriate for issues with other (mostly older) browsers. As far as I understand, Webkit is the most standards compliant layout engine available right now (am I wrong?), and it appears to be "leading the pack," so to speak, wit...

Best System to Store a Web Page on a iPhone?

I have a unique and interesting difficulty: I need to find a way to (semi-)permanently store an html page on the iPhone, but the protocol and method I choose is up to me: for example, I could request that the files be packaged in a zip archive, then download it via a URL and unzip it on the iPhone to store/view. I think it would be compl...

Is there a good Javascript based HTML parsing library available?

My goal is to take HTML entered by an end user, remove certain unsafe tags like <script>, and add it to the document. Does anybody know of a good Javascript library to sanitize html? I searched around and found a few online, including John Resig's HTML parser, Erik Arvidsson's simple html parser, and Google's Caja Sanitizer, but I haven...

Is it bad practice to have PHP conditional statements directly called from the index file (mixed with HTML markup)?

Some people have told me that the following code is bad for HTML validation: index.php: line 1 ~ 5 (this one is OK. Just for reference): <?php include_once 'localization.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> line 15 (if Chinese is selec...

change title name

i want to change the title of my page.aspx through its control webcontrole.ascx ...

strip HTML Tags with perl

Whats the easiest way to strip the HTML tags in perl. I am using a regular expression to parse HTML from a URL which works great but how can I strip the HTML tags off? Here is how I am pulling my HTML #!/usr/bin/perl -w use strict; use warnings; use LWP::Simple; my $now_string = localtime; my $html = get("http://www.spc.noaa.gov/clim...

HTML: What is this I hear about the table tag being deprecated?

Because that might mess me up, somewhat. I'm not entirely clear on what I'm supposed to use to replicate some of its functionality effectively, should I adopt a newer standard down the road. I can't seem to find good information sources to verify this, though. Would there be a good reason for this? ...

How to create a local checkboxes by jquery?

example is : But example is php,I dont't understand php how to use. Who can tell me html+jquery how to write? ...

trying to wite js makes whole page go blank

hi, thanks for looking, when i use document.write, the whole pages goes blank and only displays the ad. function __adthis(id) { $.getJSON('banner.php', function (data) { var adNum = Math.floor(Math.random() * data.ban.length); document.write("<SCRIPT TYPE='text/javascript'> SRC='+data.ban[0].link+'><\/SCRIPT>"); ...

Is there a way to hide the tooltip with html <a> title attribute??

I want the the tooltip not be displayed when the mouse hovers over the links although the title attribute should be there for it affects SEO. I've read about removing using jQuery with $('...').removeAttr('title'); but does this still generate the title atribute in html for the search engine crawlers to crawl?? ...

adding value of input box to URL as a param after a button is pressed?

Hi I have one input field and 2 buttons, each button performs a different function. i want one of the buttons to take the value of the input field and add it to a specified Url (as a param) that button should go to. so if the value inserted in to the box is "dog" then after clicking the button the URL should be "/go_somwhere?value=dog"...