On Thu, Jan 13, 2011 at 8:54 PM, Mark Shead <mark.sh...@xeric.net> wrote:
> The documentation says that the event handler for an Ajax call can > return (among other things) a JSONObject. This lead me to believe that > I could replace: > return new MultiZoneUpdate("totalPriceZone", totalPriceZone); > > In this case the zone markup is returned to the ZoneManager which updates the zone at the client side with the new contents of the zone > With something like: > return new JSONObject().put("totalPriceZone", getTotalPrice()); > > In this case a JSONObject is returned to the caller which can be any javascript and then the object can be used in any way. If you want to update the zone you have to do it yourself However, it doesn't appear that simply returning the JSON object will > trigger the update on the client side. Should this work and if not > how can I get a JSONObject to update parts of the page? > > Thanks! > > Mark > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > regards Taha