Results 1 to 2 of 2

Thread: JavaScript is causing my page not to validate

  1. #1
    Join Date
    May 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default JavaScript is causing my page not to validate

    I'm not a web design newbie but javascript is not my forte. I am using a javascript on my page that requires the user to click a checkbox before the submit buttom becomes active. The page is 100% xhtml strict valid, except when I add the javascript. The javascript wrecks havoc on the validator. The error messages on the W3C validator make no sense to me. The page seems to function fine, and the script functions fine, but it causes all kind of error messages when validating. Is there any javascript pro here that can take a look at the W3C error messages my code generates and offer any suggestions? My test page is here.

    note: the button has not been added to the test page yet. i'm trying to get it to validate before I proceed any further.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Make your script external.

    Serving XHTML isn't currently a good idea, though. See this thread for a detailed discussion.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •