xhtml

How to show a two column DropDown?

I want to show a DropDown that should display two values in two columns. I want in HTML or CSS. ...

Why do some major websites use invalid HTML?

I noticed that many websites, even Google and some banking sites, have poorly-written HTML with no quotes around the values of attributes, or using characters such as ampersands not escaped correctly in links. In other words, many use markup that would not validate. I am curious about their reasons. HTML has simple rules and it is just ...

What's wrong with this Javascript Code?

I believe something on this code chunk is not properly coded making it incompatible on XHTML 1.0 Transitional. The code snippet collapses div and then on click they will expand. Can somebody see what could be wrong? <script type="text/javascript"> function toggle(div){ el = document.getElementById(div); if (el.style.display == 'n...

Get <select> text using 'this' keyword

I am using following code: <select class="element select medium" id="inDistrict" name="inDistrict" onchange="setCookie('lastvalue',this.value,1);"> It is not taking: this.value. What else to use to get the DropDown selected text? ...

Is there any browser based XHTML editor which we can use to make text to xhtml conversion?

Is there any browser based XHTML editor which we can use to make text to xhtml conversion? If PC dosen't have any IDE or tool other than Notepad and we can't install anything on PC due to restrictions. Then what is fast and good way to make .txt or word 2007 document to clean valid xhtml code? ...

jQuery - get a certain range of items within an HTML drop-down menu.

Hi, I have a range of items in an HTML drop-down menu that I need to find with jQuery so I can then hide them [using .css('display', 'none')]. They are (in this example) all the ones between <option>---- Articles</option> and <option>---- Jargon Buster</option> except for the first six items in this range! Other than these first six,...

jquery gallery fade in/out

Hi There, I am building a simple image gallery based on the following markup: <div id="image-list"> <ul> <li id="image-1"> <img src="myimage1.jpg" width="500" height="500" alt="My Image" /> </li> <li id="image-2"> <img src="myimage2.jpg" width="500" height="500" alt="My Image" /> </li> <li id="image-3"> <img src="myimage3.jpg" width="5...

How to change tinyMCE editor's button's default tag output in wordpress?

Wordpress Tiny MCE editor and WP own editor both has button for <blockquote> . if we select any text and press this buttom then it wraps that text with <blockquote>.....</blockquote>. I want to change this output to this <blockquote><div class="quote_start"><div></div></div><div class="quote_end"><div></div></div>.........................

Why does my site look like garbage in IE?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>Davey Whitney</title> <link rel="shortcut icon" href="http://daveywhitney.com/images/favicon.ico" /> <script src="js/jquery.js" type="text/javascript"><!--mce:0--><...

Should we use strict doctype if our code is valid with Transtional doctype?

What are cons to use transitional doctype with presentational or deprecated element, if our code is valid in W3C validation with transitional doctype? Will we have to rewrite/edit site's code again after few years for the site's in which we are using XHTML/HTML transtional doctype.? This is not semantic but using less character, and it...

Div Z-Index issue with Flash movie

Hello All, I have two simple HTML divs one contains flash movie and another div contains simple text now my problem is that i have to put textual div onto the flash movie div what i am doing is setting the position of both divs to Absolute in CSS and setting the Z-Index of flash movie div to 1 and Z-Index of textual div to 2 but the text...

Detect when ALL HTML page rendering has taken place

I am working with a pretty complicated .aspx page that is full of controls (Telerik, Ajax, etc.) that all expand, collapse, show, hide, etc. when the page is loaded. Since this rendering happens on the client-side and can take different lengths of time based on the users machine specs, is there a way to detect when all (or some) renderi...

Having troubles setting the appearance of a web control

hi I'm trying to set the appearance of a Login web control, but I'm having quite a few problems. As far as I can tell, I've set everything correctly, but for some reason control still isn't displayed correctly: a) The width of the two TextBox controls ( with IDs UserName and Password ) should be equal to 70% of table's width, but it...

Select element has no 'options' array

This is doing my head in! I have a select element with several options, however I cannot manipulate or access any of the options, as apparently the 'options' array does not exist. I have recreated the problem in a simpler html document: (original project is ASP MVC) <html><head><title>test test test</title> <script type="text/javascri...

Are Single Quotes Valid in a Doctype?

As stated in this question, single quotes in html has either become more popular or we have begun to notice them more often. Regardless, I have a related question. The HTML 4.01 Strict doctype as shown at w3schools (below) uses double quotes. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"...

Having trouble with my menu on mac Safari. Works fine on Windows Safari.

http://wilwaldon.com/itsbroken/stay.html If you could take a look and tell me if it works in Safari that would be awesome. A screenshot would help if you find a bug. According to Adobe Browser Lab it looks fine, but according to my friend with a mac it's all sorts of messed up (the second tier's messed up, the vertical lines after the l...

Syntax vs Element vs Tag vs attributes vs property vs selector?

Can anyone give me deatails on each? for example? Is #ID an attribute or property or selector or anchor? Is default property and default attributes are different thing? Are all these Tags or elements? What we will say to this <img src="angry.gif" alt="Angry face" title="Angry face" /> This <div>.....</div> and these <br /> ...

in which situations use of positioning would be a better option than float?

How positioning can save our time if we use in place of float on some place in layout coding? How we can judge where positioning would give better result? For example (i added just for example) if this is a design So far i only use float + margin + padding, now if i can mix positioning and save time and get pixel perfection easily th...

How to enable background printing by default using css or javascript?

How to enable background printing by default using CSS or JavaScript from all browsers' default settings? ...

Javascript Radio Button Count and Calculation for Questionnaire

Hi, I am trying to create a simple questionnaire for a website but am fairly new to javascript and html I do have a basic function to calculate a percentage and have created the html form with radio buttons and a submit button There will be about 20 questions in the questionnaire which will have yes/no radio buttons. What I need to d...