JamesManke
Programmer
When using the code below internally on my page (which I must do because I am using ColdFusion variables), the page will not XHTML validate because of the escape "\". Is there a way around this?
Example:
<script language="JavaScript" type="text/javascript">
document.write(" <a class=\"preview\" onmouseup=\"changeColor('#show_all.name#')\" onclick=\"document.main.src=details_#image_counter#.src\" href=\"javascript:;\" onfocus=\"blur()\">#show_all.name#</a> ");
</script>
When validating I get the error,
Error: an attribute value must be quoted if it contains any character other than letters (A-Za-z), digits, hyphens, and periods; use quotes if in doubt
Thanks for your help,
James
Example:
<script language="JavaScript" type="text/javascript">
document.write(" <a class=\"preview\" onmouseup=\"changeColor('#show_all.name#')\" onclick=\"document.main.src=details_#image_counter#.src\" href=\"javascript:;\" onfocus=\"blur()\">#show_all.name#</a> ");
</script>
When validating I get the error,
Error: an attribute value must be quoted if it contains any character other than letters (A-Za-z), digits, hyphens, and periods; use quotes if in doubt
Thanks for your help,
James