[Phpfreechat-svn] SF.net SVN: phpfreechat: [452] trunk/lib/xajax_0.2.3/xajax_js/xajax.js
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-04-19 07:28:17
|
Revision: 452 Author: kerphi Date: 2006-04-19 00:28:12 -0700 (Wed, 19 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=452&view=rev Log Message: ----------- Bux fix: remove the http error popup in the compressed xajax.js Modified Paths: -------------- trunk/lib/xajax_0.2.3/xajax_js/xajax.js Modified: trunk/lib/xajax_0.2.3/xajax_js/xajax.js =================================================================== --- trunk/lib/xajax_0.2.3/xajax_js/xajax.js 2006-04-19 07:25:32 UTC (rev 451) +++ trunk/lib/xajax_0.2.3/xajax_js/xajax.js 2006-04-19 07:28:12 UTC (rev 452) @@ -91,7 +91,7 @@ xajax.processResponse(r.responseXML);else{var errorString="Error: the XML response that was returned from the server is invalid.";errorString+="\nReceived:\n"+r.responseText;trimmedResponseText=r.responseText.replace(/^\s+/g,"");trimmedResponseText=trimmedResponseText.replace(/\s+$/g,"");if(trimmedResponseText!=r.responseText) errorString+="\nYou have whitespace in your response.";alert(errorString);document.body.style.cursor='default';if(xajaxStatusMessages==true)window.status='Invalid XML response error';} } -else{var errorString="Error: the server returned the following HTTP status: "+r.status;errorString+="\nReceived:\n"+r.responseText;alert(errorString);document.body.style.cursor='default';if(xajaxStatusMessages==true)window.status='Invalid XML response error';} +else{var errorString="Error: the server returned the following HTTP status: "+r.status;errorString+="\nReceived:\n"+r.responseText;/*alert(errorString);*/document.body.style.cursor='default';if(xajaxStatusMessages==true)window.status='Invalid XML response error';} delete r;r=null;} if(xajaxDebug)this.DebugMessage("Calling "+sFunction+" uri="+uri+" (post:"+postData+")");r.send(postData);if(xajaxStatusMessages==true)window.status='Waiting for data...';delete r;return true;} this.getBrowserHTML=function(html){tmpXajax=this.$(this.workId);if(!tmpXajax){tmpXajax=document.createElement("div");tmpXajax.setAttribute('id',this.workId);tmpXajax.style.display="none";tmpXajax.style.visibility="hidden";document.body.appendChild(tmpXajax);} @@ -145,4 +145,4 @@ } delete xml;delete i;document.body.style.cursor='default';if(xajaxStatusMessages==true)window.status='Done';} } -var xajax=new Xajax();xajaxLoaded=true; \ No newline at end of file +var xajax=new Xajax();xajaxLoaded=true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |