Petit hack pour IE (XMLHttpRequest est un objet ActiveX :( )
Les navigateur implémentent un prototype XMLHttpRequest,
Instanciation d'un objet avec ce prototype
if (window.XMLHttpRequest) { // Mozilla, Safari, ...
http_request = new XMLHttpRequest();
}
else if (window.ActiveXObject) { // IE
http_request = new ActiveXObject("Microsoft.XMLHTTP");
}
27