Currently, I am in the process of making an Ajax call to a server and attempting to invoke another function once the response is ready (readystatechanged). As of now, there isn't any serverside code implemented. Surprisingly, Chrome and Firefox encounter a failure when trying to execute the "another" function call. However, Internet Explorer 8 doesn't seem to have any issues with calling the function.
In both Chrome and Firefox, I can successfully create the XMLHttpRequest object (and an ActiveXObject in IE8), as well as utilize open, send, and receive readystate changes and status codes. Nevertheless, what Chrome and Firefox are incapable of doing is executing the functions "drawTable()" and "drawChart()".
if( xhr.readystate == 4 && xhr.status == 200 )
{
drawTable();
drawChart();
}
By using Firebug and the Google Chrome Script tool, I traced the execution back to the aforementioned if-statement. The member variables readystate and status hold the correct values. Unlike IE8, however, Chrome and Firefox do not proceed to call the functions outright.