rem: if(_a.status>199&&_a.status<300){ if(_a.async){ if(!_a.handleResp){ alert("No response handler defined "+"for this XMLHttpRequest object."); return; }else{ _a.handleResp(_f,id); } } }else{ _a.handleErr(_f); } } }; _b.send(this.dataPayload); if(this.async){ return id; }else{ return _b; } }; this.abort=function(){ if(this.req){ this.req.onreadystatechange=function(){ }; this.req.abort(); this.req=null; } }; this.handleErr=function(){ var _10; try{ _10=window.open("","errorWin"); _10.document.body.innerHTML=this.responseText; } catch(e){ alert("An error occurred, but the error message cannot be"+" displayed because of your browser's pop-up blocker.\n"+"Please allow pop-ups from this Web site."); } }; this.setMimeType=function(_11){ this.mimeType=_11; }; this.setHandlerResp=function(_12){ this.handleResp=_12; }; this.setHandlerErr=function(_13){ this.handleErr=_13; }; this.setHandlerBoth=function(_14){ this.handleResp=_14; this.handleErr=_14; }; this.setRequestHeader=function(_15,_16){ this.headers.push(_15+": "+_16); 
context: fleegix.xhr=new function(){this.req=null;this.reqId=0;this.url=null;this.status=null;this.statusText="";this.method="GET";this.async=true;this.dataPayload=null;this.readyState=null;this.responseText=null;this.responseXML=null;this.handleResp=null;this.responseFormat="text",this.mimeType=null;this.username="";this.password="";this.headers=[];var i=0;var _2=[function(){return new XMLHttpRequest();},function(){return new ActiveXObject("Msxml2.XMLHTTP");},function(){return new ActiveXObject("Microsoft.XMLHTTP");}];while(!this.req&&(i<_2.length)){try{this.req=_2[i++]();}catch(e){}}if(this.req){this.reqId=0;}else{alert("Could not create XMLHttpRequest object.");}this.doGet=function(_3,_4,_5){this.url=_3;this.handleResp=_4;this.responseFormat=_5||"text";return this.doReq();};this.doPost=function(_6,_7,_8,_9){this.url=_6;this.dataPayload=_7;this.handleResp=_8;this.responseFormat=_9||"text";this.method="POST";return this.doReq();};this.doReq=function(){var _a=null;var _b=null;var id=null;var _d=[];_b=this.req;this.reqId++;id=this.reqId;if(this.username&&this.password){_b.open(this.method,this.url,this.async,this.username,this.password);}else{_b.open(this.method,this.url,this.async);}if(this.mimeType&&navigator.userAgent.indexOf("MSIE")==-1){_b.overrideMimeType(this.mimeType);}if(this.headers.length){for(var i=0;i<this.headers.length;i++){_d=this.headers[i].split(": ");_b.setRequestHeader(_d[i],_d[1]);}this.headers=[];}else{if(this.method=="POST"){_b.setRequestHeader("Content-Type","application/x-www-form-urlencoded");}}_a=this;_b.onreadystatechange=function(){var _f=null;_a.readyState=_b.readyState;if(_b.readyState==4){_a.status=_b.status;_a.statusText=_b.statusText;_a.responseText=_b.responseText;_a.responseXML=_b.responseXML;switch(_a.responseFormat){case "text":_f=_a.responseText;break;case "xml":_f=_a.responseXML;break;case "object":_f=_b;break;}if(_a.status>199&&_a.status<300){if(_a.async){if(!_a.handleResp){alert("No response handler defined "+"for this XMLHttpRequest object.");return;}else{_a.handleResp(_f,id);}}}else{_a.handleErr(_f);}}};_b.send(this.dataPayload);if(this.async){return id;}else{return _b;}};this.abort=function(){if(this.req){this.req.onreadystatechange=function(){};this.req.abort();this.req=null;}};this.handleErr=function(){var _10;try{_10=window.open("","errorWin");_10.document.body.innerHTML=this.responseText;}catch(e){alert("An error occurred, but the error message cannot be"+" displayed because of your browser's pop-up blocker.\n"+"Please allow pop-ups from this Web site.");}};this.setMimeType=function(_11){this.mimeType=_11;};this.setHandlerResp=function(_12){this.handleResp=_12;};this.setHandlerErr=function(_13){this.handleErr=_13;};this.setHandlerBoth=function(_14){this.handleResp=_14;this.handleErr=_14;};this.setRequestHeader=function(_15,_16){this.headers.push(_15+": "+_16);};};
meta: 10428	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10428/f0576f65a7b0341560eac2493956030db69acdc9/fleegix.js/clean/fleegix.js