Heyyyy... I'm trying to get some AJAX going on in my website. It works FINE in IE 6, but when I try it with Mozilla FireFox, nothing happens. Can anybody see anything wrong with the following javascript code?
function makeRequest(url, divID) {
var http_request = null;
try {
http_request = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
http_request = new ActiveXObject("Microsoft.XMLHTTP");
}
if (http_request == null){
http_request = new XMLHttpRequest();
}
//if still cannot create HTTP REQUEST object:
if (!http_request) {
alert('Sorry. Cannot create an XMLHTTP instance. Please try again');
return false;
}
http_request.onreadystatechange = function(){ handleResponse(http_request, divID); };
http_request.open("GET", url, false);
http_request.setRequestHeader( "If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT" );
http_request.send( null );
}