Re: Ajax.Request to handle a multizone update?

2010-05-23 Thread Paul Stanton
Howard, where can I find it in 5.2? (js method name) I'd like to write some forwards compatibility so i don't forget when we upgrade... Howard Lewis Ship wrote: I've extracted the body of 'Tapestry.loadScriptsInReply' and called that with the parameter 'transport.responseJSON'. This

Ajax.Request to handle a multizone update?

2010-05-18 Thread Paul Stanton
Hi all, I've set up an Ajax.Request to call a listener method in my component. The listener method returns a MultiZoneUpdate. return new MultiZoneUpdate(myZone, myZone); // this will update more zones once I get it working My question is, what do I have to do in my onComplete (or onSucess)

Re: Ajax.Request to handle a multizone update?

2010-05-18 Thread Vassilis Bekiaris
Hi, in a page I would do the following (not really sure if you may apply this in a component, however I see no reason why you shouldn't be able to do this): 1. Include an eventlink (even if you don't want the ajax update to be invoked by means of clicking the link, include it and hide it

Re: Ajax.Request to handle a multizone update?

2010-05-18 Thread Paul Stanton
Thanks Vassilis, The key was in the javascript function processReply processReply : function(reply) { Tapestry.loadScriptsInReply(reply, function() { // In a multi-zone update, the reply.content may be blank or missing. reply.content