Revision: 451
Author: kerphi
Date: 2006-04-19 00:25:32 -0700 (Wed, 19 Apr 2006)
ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=451&view=rev
Log Message:
-----------
fix the http error popup in the compressed xajax.js
Modified Paths:
--------------
branches/0.x/lib/xajax_0.2.3/xajax_js/xajax.js
Modified: branches/0.x/lib/xajax_0.2.3/xajax_js/xajax.js
===================================================================
--- branches/0.x/lib/xajax_0.2.3/xajax_js/xajax.js 2006-04-18 15:09:27 UTC (rev 450)
+++ branches/0.x/lib/xajax_0.2.3/xajax_js/xajax.js 2006-04-19 07:25:32 UTC (rev 451)
@@ -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.
|