I\'ve developed a web application that works well on chrome and firefox. However when it came to testing time and it doesn\'t work properly in IE. It just doesn\'t seem to a
As mentioned here, Internet Explorer supports the onload
event of the XMLHttpRequest object only since version 9.
So, for IE 8 and below, you can do it in the old fashioned way:
xhr.onreadystatechange = function()
{
//ready?
if (xhr.readyState != 4)
return false;
//get status:
var status = xhr.status;
//maybe not successful?
if (status != 200) {
alert("AJAX: server status " + status);
return false;
}
//Got result. All is good.
loading.innerHTML = 'Print Report' +
'
HomePage
' +
'Refresh
' +
'Logout
';
target.innerHTML = xhr.responseText;
return true;
}