Monday, April 11, 2011

Javascript code only works in firefox when firebug open???

Symptoms: Your javascript code works only in FF when firebug is turned on.

Solution:  Look inside your code and see if you have console.log or something like that in there.  Because when firebug is turned off, the console is becoming undefined.

If you must have the console in your code, try to wrap your console in something like this:

if(window.console) {

No comments:

Post a Comment