I would just return the data as json and have all of the code
execution done in the onSuccess event of the Request.JSON using an each
().  Just pass the region id and the value for each.

On Oct 6, 8:16 am, jtreitz <[email protected]> wrote:
> Hey guys,
>
> still having this exact problem for months, maybe i dont see the wood
> for the trees :-)
>
> Let's say I fire an ajax request and the then called server-side logic
> decides its time to update 3 regions on the page. Only way I see to do
> this is sending back some javascript like this:
>
> reg1.set('html', LOAD HTML-PARTIAL AS STRING HERE);
> reg2.set('html', LOAD HTML-PARTIAL AS STRING HERE);
> reg3.set('html', LOAD HTML-PARTIAL AS STRING HERE);
>
> The client-side Request evals the response as expected and replaces
> the 3 regions with the new html code BUT if a html partial itself
> contains some scripts they wont be evaluated resulting in replaced
> regions not working anymore.
>
> What would you do? Thanks!
>
> Johannes

Reply via email to