Monday, June 21, 2010
Creating XMLHTTPRequestObject - For all Browsers
funciton getXMLHTTPRequest(){
var request = false;
if (window.XMLHTTPRequest){
request = new XMLHTTPRequest();
}else {
if(window.ActiveXObject){
try{
request = new ActiveXObject("Msml2.XMLHTTP");
} catch(err1){
try{
request = [ic:ccc]new ActiveXObject("Microsoft.XMLHTTP");
}catch(err2){
request = false;
}
}
}
}
return request;
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment