I remember @Inject RenderSupport is not available in ajax action request even though in latest snapshot, I just tried several days ago and got error.
Thanks DH ----- Original Message ----- From: "Fernando Padilla" To: "Tapestry users" <users@tapestry.apache.org> Sent: Wednesday, April 15, 2009 10:16 AM Subject: Re: T5 how to execute javascript after zone update? > You use the normal RenderSupport.addScript(..) method. And tapestry > adds it to the json response, and it gets executed by loadScriptsInReply... > > DH wrote: >> 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 >>> >>> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >