Forum Moderators: open

Message Too Old, No Replies

javascript code validation

finding errors in code

         

ssling

3:08 pm on Jan 15, 2007 (gmt 0)

10+ Year Member



i am still a javascript novice but i can't help adding more and more little tricks to my webpages. problem is, i frequently introduce little errors in the javascript code, which renders the whole external.js file useless, and it sometimes takes hours just to find the stray comma (or whatever) that caused the error!

i've looked all over to find some script validator or similar on the net where i can just paste my code and it will tell me where the error is. anyone know of such a site / application?

thanks!

Fotiman

3:58 pm on Jan 15, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I would recommend installing the Firefox [mozilla.com] web browser, and then install the Firebug [getfirebug.com] extension for it. This debugger is very helpful for tracking down syntax errors in the code.

Rambo Tribble

1:28 am on Jan 16, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Also in Firefox, even without Firebug, the JavaScript Console or Error Console (depending on the Firefox version) provides valuable information regarding script execution errors. You will find it under the "Tools" menu.

ssling

1:32 am on Jan 16, 2007 (gmt 0)

10+ Year Member



cool. thanks very much for the tips... i'll check those out.