1. If your return is Block or Zone, just put <script>...</script> inside the block or zone. 2. If return is JSONObject, can do like this: JSONObject response = new JSONObject(); response.put("script", "alert('ff');"); return response;
Thanks, DH ----- Original Message ----- From: "grabarz" <umrzy...@gazeta.pl> To: <users@tapestry.apache.org> Sent: Wednesday, April 15, 2009 5:37 AM Subject: T5 how to execute javascript after zone update? > is there any way to execute custom piece of javascript after zone > update? inside tapestry.js i found: > > loadScriptsInReply : function(reply, callback) > > * Passed the JSON content of a Tapestry partial markup response, extracts > * the script and stylesheet information. JavaScript libraries and > stylesheets are loaded, > * then the callback is invoked. > > and indeed it tries to evaluate passed script: > > if (reply.script) eval(reply.script); > > the question is, how to inject my javascript into reply? > > cheers, > m. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >