I am using XMLHttpRequest as a simple one way ajax logging function. No server response is needed. The request does not cross domains.
This code works as expected in IE and in Firefox
however, as soon as I remove the alert() it fails in Firefox
the server never receives the call...
When I step thru this in firebug, I can remove the alert line and once I step thru to the return line the function works as expected. But as soon as I eliminate the debugger (no break) it ceases to work again? very strange. no errors thrown.
I have tested this on crossbrower testing site live and determined that it is not a problem localized to my machine. The code works as expected in IE but requires the alert() to be fired in Firefox.
I tried this code with jquery.ajax with same results... in firefox, the request only works if the alert() line is present. I removed firebug, no luck. Tried corssbrowser testing again, same results...
I'm stumped... :(
This code works as expected in IE and in Firefox
Code:
var client2 = new XMLHttpRequest();
client2.open("GET", "program?url=c",true);
client2.send();
alert('sent');
return true;
Code:
var client2 = new XMLHttpRequest();
client2.open("GET", "program?url=c",true);
client2.send();
return true;
When I step thru this in firebug, I can remove the alert line and once I step thru to the return line the function works as expected. But as soon as I eliminate the debugger (no break) it ceases to work again? very strange. no errors thrown.
I have tested this on crossbrower testing site live and determined that it is not a problem localized to my machine. The code works as expected in IE but requires the alert() to be fired in Firefox.
I tried this code with jquery.ajax with same results... in firefox, the request only works if the alert() line is present. I removed firebug, no luck. Tried corssbrowser testing again, same results...
I'm stumped... :(
Comment