Das DOM ist schon dasselbe, aber der IE braucht ein ActiveX-Objekt, um XML einlesen zu können.
Hmm, ich glaub schon dass ich das richtig mache, oder? Nämlich so:
AjaxRequest.getXmlHttpRequest = function() {
if (window.XMLHttpRequest) {
alert("0");
return new XMLHttpRequest();
}
else if (window.ActiveXObject) {
// Based on http://jibbering.com/2002/4/httprequest.html
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
alert("1");
return new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
alert("2");
return new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
alert("3");
return null;
}
}
@end @*/
}
else {
alert("4");
return null;
}
};
Beim IE wird hier zuerst "1" ausgegeben. Also sollte ich schon ein ActiveXObject habe, oder???