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:23:31 UTC
svn commit: r464847 -
/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/wicket-ajax.js
Author: knopp
Date: Tue Oct 17 00:23:30 2006
New Revision: 464847
URL: http://svn.apache.org/viewvc?view=rev&rev=464847
Log:
Fixed getResponseHeader exception
Modified:
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/wicket-ajax.js
Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/wicket-ajax.js
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/wicket-ajax.js?view=diff&rev=464847&r1=464846&r2=464847
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/wicket-ajax.js (original)
+++ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/ajax/wicket-ajax.js Tue Oct 17 00:23:30 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;