You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2006/03/27 14:54:22 UTC

svn commit: r389125 - /incubator/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/prototype.js

Author: weber
Date: Mon Mar 27 04:54:21 2006
New Revision: 389125

URL: http://svn.apache.org/viewcvs?rev=389125&view=rev
Log:
remove protocoll stuff from ajax response (IE needs this somtimes)

Modified:
    incubator/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/prototype.js

Modified: incubator/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/prototype.js
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/prototype.js?rev=389125&r1=389124&r2=389125&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/prototype.js (original)
+++ incubator/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/prototype.js Mon Mar 27 04:54:21 2006
@@ -773,6 +773,10 @@
       this.containers.success : this.containers.failure;
     var response = this.transport.responseText;
 
+    if (response.match(/^[0-9a-fA-F]+\r\n/) && response.match(/\r\n0\r\n\r\n$/)) {
+      response = response.replace(/^[0-9a-fA-F]+\r\n/, "").replace(/\r\n0\r\n\r\n$/, "");
+    }
+
     if (!this.options.evalScripts)
       response = response.stripScripts();