Guus Bosman

software engineering director


You are here

Work NC

JavaScript

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.

Comments

Visual Studio 2008 also support Javascript debugging and intellisense :-)

Jean-Paul, you're a good friend but you and I won't agree on the perfect development environment soon :)

Firebug rulez! :-D

Absolutely!

Be sure to try out www.jslint.org also -- it's really useful. Their disclaimer: "WARNING: JSLint may hurt your feelings".

Recent comments

Recently read

Books I've recently read: