$.ajaxSetup({xhr:function(){if(window.XMLHttpRequest){return new XMLHttpRequest();}else if(window.ActiveXObject){try{return new ActiveXObject("Microsoft.XMLHTTP");} catch(e){try{return new ActiveXObject("Msxml2.XMLHTTP");} catch(e){return false;}}}}});