You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2006/10/17 09:27:39 UTC

svn commit: r464848 - /incubator/wicket/trunk/wicket/src/main/java/wicket/ajax/wicket-ajax.js

Author: knopp
Date: Tue Oct 17 00:27:39 2006
New Revision: 464848

URL: http://svn.apache.org/viewvc?view=rev&rev=464848
Log:
Fixed getResponseHeader exception

Modified:
    incubator/wicket/trunk/wicket/src/main/java/wicket/ajax/wicket-ajax.js

Modified: incubator/wicket/trunk/wicket/src/main/java/wicket/ajax/wicket-ajax.js
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/main/java/wicket/ajax/wicket-ajax.js?view=diff&rev=464848&r1=464847&r2=464848
==============================================================================
--- incubator/wicket/trunk/wicket/src/main/java/wicket/ajax/wicket-ajax.js (original)
+++ incubator/wicket/trunk/wicket/src/main/java/wicket/ajax/wicket-ajax.js Tue Oct 17 00:27:39 2006
@@ -586,7 +586,12 @@
 		if (t.readyState == 4) {
 			if (t.status == 200) {				
 				var responseAsText = t.responseText;
-				var redirectUrl = t.getResponseHeader('Ajax-Location');
+				
+				var redirectUrl;
+				try {
+					redirectUrl = t.getResponseHeader('Ajax-Location');
+				} catch (ignore) { // might happen in older mozilla
+				}
 				
 				if (typeof(redirectUrl) != "undefined" && redirectUrl != null && redirectUrl != "") {
 					t.onreadystatechange = Wicket.emptyFunction;