Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XHTML Validating Prob On DROP DOWN! 1

Status
Not open for further replies.

MasumX

Programmer
Feb 19, 2005
26
US
Hi, i get this error when i try to validate my site and it shows me this error! so can anyone please help me? to fix this problem please? thanks alot in advanced!!

====================================

Below are the results of attempting to parse this document with an SGML parser.

Line 77, column 83: required attribute "action" not specified

...="119" vspace="3" /><form name="jump">

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.

?

Line 78, column 59: there is no attribute "onChange"

...center"><select name="menu" onChange="location=document.jump.menu.options[doc

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.

?

Line 78, column 144: there is no attribute "value"

...mp.menu.selectedIndex].value;" value="GO">

?

Line 79, column 16: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified

<option selected>- Select Skin -</option>



=================================================
THE FULL DROP DOWN CODE!
==================================================


<form name="jump">
<p style="text-align: center"><select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
<option selected>- Select Skin -</option>
<option value="index.php?color=default">Default</option>
<option value="index.php?color=blue">Blue</option>
<option value="index.php?color=pink">Pink</option>
<option value="index.php?color=green">Green</option>
<option value="index.php?color=purple">Purple</option>
<option value="index.php?color=navyblue">Navyblue</option>
<option value="index.php?color=slateblue">Slateblue</option>
<option value="index.php?color=burlywood">Burlywood</option>
</select></p></form>
 
umm i fixed two more error but i got 2 left which are shown as..


Line 78, column 144: there is no attribute "value"

...mp.menu.selectedIndex].value;" value="go">

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.

?

Line 79, column 16: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified

<option selected>- Select Skin -</option>
 
Line 78, column 144: there is no attribute "value"

...mp.menu.selectedIndex].value;" value="go">
Reading the code, you're trying to give a value to a <select> tag. <select> CANNOT hold a value, only the <option> tags within hold a value.

Line 79, column 16: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified

<option selected>- Select Skin -</option>
You want:
Code:
<option [COLOR=red]selected="selected"[/color]>- Select Skin -</option>

<marc>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top