Muhammad Gelbana wrote: > > I solved the situation using a workaround. But I still couldn't > efficiently run javascript when the block zone is updated. > I tried using the javascriptsupport service but couldn't find a way to > use it as it needs to be used in the "afterrender" event of the zone > which i couldn't figure out where to implement !..mixins doesn't work > with zones !! > > If any of this sounds crazy..it's because I'm new to ajax with tapestry. >
In your AJAX event handler just add the script via JavaScriptSupport - this script will be executed after the zone is updated: onAjaxEvent() { javaScriptSupport.addScript("alert('Hello')"); } -- View this message in context: http://tapestry.1045711.n5.nabble.com/Run-javascript-after-a-zone-is-updated-tp4787067p4799165.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org