cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jer...@apache.org
Subject svn commit: r476258 - /cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/resources/js/BUHandler.js
Date Fri, 17 Nov 2006 19:08:08 GMT
Author: jeremy
Date: Fri Nov 17 11:08:07 2006
New Revision: 476258

URL: http://svn.apache.org/viewvc?view=rev&rev=476258
Log:
improved error handling

Modified:
    cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/resources/js/BUHandler.js

Modified: cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/resources/js/BUHandler.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/resources/js/BUHandler.js?view=diff&rev=476258&r1=476257&r2=476258
==============================================================================
--- cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/resources/js/BUHandler.js
(original)
+++ cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/resources/js/BUHandler.js
Fri Nov 17 11:08:07 2006
@@ -48,8 +48,13 @@
 			nodes = base.childNodes;
 			dojo.debug("got response using: XMLHTTPTransport");
 		} else {
-			nodes = dojo.byId("browser-update", doc).childNodes;
-			dojo.debug("got response using: IframeTransport");
+			base = dojo.byId("browser-update", doc);
+			if (base) {
+				nodes = base.childNodes;
+				dojo.debug("got response using: IframeTransport");
+			} else {
+				this.handleError("No response data found", request);
+			}
 		}
 		for (var i = 0; i < nodes.length; i++) {
 			var node = nodes[i];



Mime
View raw message