• Resolved polimom

    (@polimom)


    I’ve (finally) validated most of my errors. (Those nested sidebar links are a bear, eh?!!)

    However, I am left with 13 errors – some of which are “warnings” – over which I’m pretty much powerless, I think. The sources for the error code(s) are stat sites, which generate and provide the code I’m supposed to use.

    I don’t know the first thing about javascript. Has anyone else had this problem? And what’s the difference between an error and a warning?

    http://www.polimom.com

    Thanks!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • One quick thing to look at with javascript, in your source, is how it is “declared” in the script tag. Experiment with using attributes like:

    <script language="JavaScript" type="text/javascript" src="whateveryoursourcemightbe">

    Thread Starter polimom

    (@polimom)

    Hmmm….

    I moved the problematic scripts to a different spot on the index.php. I’m now down to 4 errors (!), all of which seem to be complaints about “general entity java”.

    ?

    Use CDATA tagsets to surround the js codes.

    The opening one will take the form //<![CDATA[ and be located immediately beneath the opening <script> tag line. The closing one will take the form //]]> and be located immediately above the closing </script> tag line.

    This may need tweaking a bit depending. Post back if you’re still having problems.

    Thread Starter polimom

    (@polimom)

    YYIIPPPPEEEEE!!!!! It validates!

    (There were a couple of amersands in the code I’d missed)

    Thanks for the hints and patience.

    There you go! Glad it’s working/valid now….

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Javascript validation errors’ is closed to new replies.