var
http_request
=
false
;
function send_request(url) ... {
if(window.XMLHttpRequest)
...{
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) ...{
//http_request.setRequestHeader("Cache-Control","no-cache");
http_request.overrideMimeType('text/xml');
}
}
else if (window.ActiveXObject)
...{
try ...{
http_request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e)
...{
try ...{
http_request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) ...{}
}
}
if (!http_request) ...{
window.alert("cannot create XMLHttpRequest instance");
return false;
}
http_request.open("GET", url, true);
http_request.setRequestHeader("If-Modified-Since","0");
http_request.send(null);
}
function send_request(url) ... {
if(window.XMLHttpRequest)
...{
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) ...{
//http_request.setRequestHeader("Cache-Control","no-cache");
http_request.overrideMimeType('text/xml');
}
}
else if (window.ActiveXObject)
...{
try ...{
http_request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e)
...{
try ...{
http_request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) ...{}
}
}
if (!http_request) ...{
window.alert("cannot create XMLHttpRequest instance");
return false;
}
http_request.open("GET", url, true);
http_request.setRequestHeader("If-Modified-Since","0");
http_request.send(null);
}