By simply looking at a javascript file one cannot say where is the syntax error (if any). And there is no compiler as such during our development which will say that. We simply write DOM methods or functions in the javascript unlike Java (Eclipse is a tool which will validate the source code during development). But this is not available in javascript. However during development of any application in cordys there will be a place where you add events/javascript functions in any XForm. Cordys will be able to tell if the XForm has any errors but it won't tell where exactly the error is (eg., will not tell the line number of the error) which will make difficult for a developer to locate where exactly is the error,
There is an online website which will validate the javascript and will notify the error if there are any,
All you have to do is to copy the javascript and paste in the place provided in the website. A sample screen is shown below
And the website you are looking for is given below
http://www.javascriptlint.com/online_lint.php
On Click of the lint button it will show the errors if there are any in the javascript file.
There is an online website which will validate the javascript and will notify the error if there are any,
All you have to do is to copy the javascript and paste in the place provided in the website. A sample screen is shown below
And the website you are looking for is given below
http://www.javascriptlint.com/online_lint.php
On Click of the lint button it will show the errors if there are any in the javascript file.