Hi folks,

I'm quite new to symfony and ajax so my question might sound stupid,
but I'm looking for a way to update more than one div in my page with
one ajax remote call.

I found that json is a common way to achieve this but couldn't find a
way to get the response from one action rendered with the appropriate
template. That would be needed to encode the response in a json-
Header.

To explain:
I have two divs which are usually populated with one action but two
partials. There are two different methods in my action.class.php which
give the needed data that I pass to the partials. With a remote-form-
call in div1 (function refresh_both()) I want to change the content of
div2 which is working fine, but in th same processing an update of
div1 is needed. That's why I thought of using json. But since the
updated content that is to go in div1 is already a template-based
partial I need it to be rendered. So I think I have to render it in
the the refresh_both()-function.

Is there a way to achieve this, or is there any other approach that is
more common or more easy to implement?

Thanks in advance for help,
Pierre
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to