SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    Posts rarely lloydi's Avatar
    Join Date
    Jan 2002
    Location
    Swindon UK
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Online Javascript syntax checker, anyone?

    I have a whole heap of Javascript that I want to compress (by removing line breaks etc). When laid out with line breaks, all works fine. When compressed ... BANG!

    I suspect that there is a semi-colon missing somewhere which is only breaking when the return is removed. However, I'd like to run the whole block of javascript through an online validator instead of straining my eyes trying to locate the piece of the script at fault.

    Is there such a thing? When I search for 'Javascript validator', I get a whole heap of links to using javascript to validate forms and such like!

    Hope someone can help.
    Build Your Own Web Site the Right Way!
    A beginners' HTML/CSS book with web standards at its heart
    The Ultimate HTML Reference
    A complete reference, in glorious hardback

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Type javascript: in Netscape
    and you will see a list of errors: "missing ; before statement"


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
  •