JavaScript
What's wrong with the following piece of JavaScript?
pbar.wait({ interval:200, increment:15, }); document.myform.myaction.click();
Well, nothing according to FireFox.
Internet Explorer doesn't like it though: "expected identifier, string or number". It turns out that the extra comma after "increment:" throws IE off. Debugging JavaScript used to be a total nightmare 5 years ago, but tools like FireBug and www.jslint.org made development a lot more productive.
»
- Log in to post comments
Comments
Re: JavaScript
Visual Studio 2008 also support Javascript debugging and intellisense :-)
Re: JavaScript
Jean-Paul, you're a good friend but you and I won't agree on the perfect development environment soon :)
Re: JavaScript
Firebug rulez! :-D
Re: JavaScript
Absolutely!
Be sure to try out www.jslint.org also -- it's really useful. Their disclaimer: "WARNING: JSLint may hurt your feelings".