BobLoblaw
06-15-2007, 04:00 PM
I'm a novice at javascript, but I've been able to get a MySQL database DHTML menu to work. Trouble is, it fails validation on this:
<li><a href="# src="" onmouseup="acclarge();"" target="_self">Launch</a>
The error targets the second double quote mark after 'src='.
Here is the W3C error report:
/*************************************************/
Error Line 72 column 22: an attribute specification must start with a name or name token.
<li><a href="# src="" onmouseup="acclarge();"" target="_self">Launch</a>
An attribute name (and some attribute values) must start with one of a restricted set of characters. This error usually indicates that you have failed to add a closing quotation mark on a previous attribute value (so the attribute value looks like the start of a new attribute) or have used an attribute that is not defined (usually a typo in a common attribute name).
/*************************************************/
This error occurs each I make a database call like the one above.
The DHTML menu item retrieves this from a database field:
# src="" onmouseup="acclarge();"
I don't understand how else this call can be made so that it will validate.
Has anyone run into this before? Sure would appreciate some help.
<li><a href="# src="" onmouseup="acclarge();"" target="_self">Launch</a>
The error targets the second double quote mark after 'src='.
Here is the W3C error report:
/*************************************************/
Error Line 72 column 22: an attribute specification must start with a name or name token.
<li><a href="# src="" onmouseup="acclarge();"" target="_self">Launch</a>
An attribute name (and some attribute values) must start with one of a restricted set of characters. This error usually indicates that you have failed to add a closing quotation mark on a previous attribute value (so the attribute value looks like the start of a new attribute) or have used an attribute that is not defined (usually a typo in a common attribute name).
/*************************************************/
This error occurs each I make a database call like the one above.
The DHTML menu item retrieves this from a database field:
# src="" onmouseup="acclarge();"
I don't understand how else this call can be made so that it will validate.
Has anyone run into this before? Sure would appreciate some help.