How do I get the XMLHttpRequest object?

John Zukowski

Depending upon the browser...


if (window.ActiveXObject) { // Internet Explorer
    http_request = new ActiveXObject("Microsoft.XMLHTTP");
} else if (window.XMLHttpRequest) { // And the rest
    http_request = new XMLHttpRequest();
}
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact