Copy code code as follows:
var xmlhttp;
Function CreatexmlhttpRequest ()
{{
if (Window.xmlhttpRequest)
{{
xmlhttp = New xmlhttpRequest ();
if (XMLHTTP.Overridemimetype)
{{
xmlhttp.overridemimeType ("Text/XML");
}
}
else if (window.activexobject)
{{
try
{{
xmlhttp = New ActivexObject ("msxml2.xmlhttp");
}
catch (e)
{{
xmlhttp = New ACTIVEXObject ("Microsoft.xmlhttp");
}
}
if (! xmlhttp)
{{
Window.alert ("Your browser does not support the creation of xmlhttprequest objects");
}
Return xmlhttp;
}