You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Ryan Lubke <Ry...@Sun.COM> on 2006/02/16 23:34:29 UTC
[shale][patch] Simple patch to get the AJAX example working properly
Without this patch, I received javascript errors in Firefox.
-------------------------------------------------------------------------------------------------------------
Index: use-cases/src/web/ajax/zipCode.jsp
===================================================================
--- use-cases/src/web/ajax/zipCode.jsp (revision 378284)
+++ use-cases/src/web/ajax/zipCode.jsp (working copy)
@@ -33,8 +33,8 @@
// from the zip code menu.
function zipChanged(zip) {
- sendRequest(<%= request.getContextPath() %> +
-
"dynamic/remoting$business/cityAndStateForZip.faces" +
+ sendRequest("<%= request.getContextPath() %>" +
+
"/dynamic/remoting$business/cityAndStateForZip.faces" +
"?zip=" + escape(zip),
processZipCodeSelection);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org