2013-11-02 19:52:50 +00:00
|
|
|
if (!window.XMLHTTPRequest) {
|
2013-11-02 21:46:33 +00:00
|
|
|
var idx, activeObjs = ["Microsoft.XMLHTTP", "Msxml2.XMLHTTP", "Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0"];
|
|
|
|
for (idx = 0; idx < activeObjs.length; idx++) {
|
2013-11-02 19:52:50 +00:00
|
|
|
try {
|
2013-11-02 21:46:33 +00:00
|
|
|
new ActiveXObject(activeObjs[idx]);
|
2013-11-02 19:52:50 +00:00
|
|
|
window.XMLHttpRequest = function() {
|
2013-11-02 21:46:33 +00:00
|
|
|
return new ActiveXObject(activeObjs[idx]);
|
2013-11-02 19:52:50 +00:00
|
|
|
};
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
catch (e) {}
|
|
|
|
}
|
|
|
|
}
|