Initializing XMLHttpRequest Object
This is the standard way of initializing XMLHttpRequest Object
XMLHttp-Initialize.js
var xhr;
if(window.ActiveXObject)
{
try
{
xhr = new ActiveXObject(“Microsoft.XMLHTTP”);
}
catch (e)
{
xhr = false;
}
}
else
{
try
{
xhr = new XMLHttpRequest();
}
catch (e)
{
xhr = false;
}
}
Download Code
