Skip to content

Instantly share code, notes, and snippets.

@joseanpg
Forked from juandopazo/gist:912689
Created April 16, 2011 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joseanpg/923286 to your computer and use it in GitHub Desktop.
Save joseanpg/923286 to your computer and use it in GitHub Desktop.
var Ajax = (function (){
function AjaxXMLHTTPRequest(){}
AjaxXMLHTTPRequest.prototype = {...};
function AjaxActiveX(){}
AjaxActiveX.prototype = {};
return (typeof window.ActiveXObject === 'undefined') ?
AjaxXMLHTTPRequest:
AjaxActiveX;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment