Hi,
I was taking a look at the FF browser javascript console to see if there was someting happening in a particularly dense javascript page that could explain a slowness to open and found several alerts. My page is based in part on the DD script at: http://www.dynamicdrive.com/dynamici...menu/index.htm
So, figuring that these should be corrected so the parser doesn't have to attempt to correct these (and take time to do so), I went to find an online javascript validator, and found one at: http://jslint.com/ and used it with good and bad results. Sure, some of the things obviously needed to be corrected, such as using '!=' instead of the correct '!==' in a comparison, and these changes were ok, and do make things run noticeable faster. But others are not tolerated by FF, like literal notation, where 'var opt=new Array();' is acceptable but 'var opt=new Array[];' is not. And there are others too, such as '{' after an 'else' if on the same line, etc.
So, what's up and is there a reliable javascript parser, and should I even attempt to apply this to my code since it is expected to run in who-knows-what version of both javascript and JScript (IE)???



Reply With Quote


Bookmarks