Created
April 11, 2013 15:24
-
-
Save ariunbat/5364306 to your computer and use it in GitHub Desktop.
XHR wrapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createXHR(){ | |
try {return new XMLHttpRequest();} catch(e){} | |
try {return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch(e){} | |
try {return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch(e){} | |
try {return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e){} | |
try {return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e){} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment