Usually, Firebug gives a half decent error message when something goes wrong or doesn't compile. In this case though, I am simply getting the following:
X: $(
$('#' + divName).emtpy();
The code is something like this:
// Some code that sets variable row_entry
// debugger;
$('#' + divName).emtpy();
$('#' + divName).append(row_entry);
When I uncomment the debugger, and look at it in Firebug, I can call the methods:
>>> $('#' + divName)
[tr#row_1]
>>> $('#' + divName).emtpy();
>>> $('#' + divName).append(row_entry);
[tr#row_1]
The row_entry is set initialized correctly, and this makes the webpage look as I desire, but Firebug throws this error on regular execution, and the same thing happens when I resume the code after the debugger testing. The page also does not load correctly when Firebug is not running.
Can someone please explain what is going on?