Thanks Thiago, but I don't think that helps as I need to include the
script from within my event listener ie Java server side.
I trawled through the list and found a post by Josh C that does the
trick perfectly, i quote:
Try this:
@Inject
private RenderSupport _support;
@Inject
private PageRenderQueue _queue;
MultiZoneUpdate onHello() {
_queue.addPartialMarkupRendererFilter(new
PartialMarkupRendererFilter() {
public void renderMarkup(MarkupWriter writer, JSONObject
reply, PartialMarkupRenderer renderer) {
_support.addScript("alert('I am script');");
renderer.renderMarkup(writer, reply);
}
});
return new MultiZoneUpdate("test", _timeBlock);
}
Thanks again Josh and Thiago,
regards, p.
Thiago H. de Paula Figueiredo wrote:
On Thu, 05 Aug 2010 22:08:16 -0300, Paul Stanton <p...@mapshed.com.au>
wrote:
Hi all,
Hi!
I've got an ajax event listener which returns a MultiZoneUpdate.
I need to also run a script AFTER all of the zones have been updated.
What is the simplest way to achieve this?
Take a look at http://api.prototypejs.org/ajax/ajax/responders/.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org