Pulling my hair out please does anybody have the solution?
In the readystate event handler, I simply read responseText - it comes back as emptystring/blank, 1 out of 100 times when I use FireFox 3.5 + Firebug on Windows Vista, or 1 out of 10 times when using FireFox 3.5 on Mac OS.
The bizarre thing is that the responseText seems to get filled in during the time it takes to do a breakpoint and read the value, for example:
var responseText = request.responseText;
if(responseText == "") {
alert("breakpoint here");
}
When the breakpoint hits, responseText is emptystring but request.responseText has the correct response.
It seems tentitively like a kind of timing issue or bug in FireFox/FireBug or does somebody have an idea?
Thanks! - Brian