views:

232

answers:

3

I have jQuery code which works offline in Safari and Opera, but neither in Firefox 3.1 nor 3.08.

How can you use Firefox's JavaScript engine in offline debugging?

+1  A: 

If you jQuery isn't running when using a localhost you probably need to make sure that your paths match up. Different browsers handle relative paths differently when running off the harddrive. I suggest using static paths. Also you probably want to checkout FireBug, which is a FireFox plug-in that allows you to inspect the JavaScript.

Nick Berardi
+3  A: 

Both Safari and Opera come with JavaScript debuggers. For Firefox, the weapon of choice is to install Firebug.

Daniel Lew
+3  A: 

You can install SpiderMonkey and play around with that.

Or you can use Firebug which has a JavaScript debugger.

Brian Campbell