Hello, > You will find more information about this feature in the > documentation : > http://www.symfony-project.org/book/1_0/11-Ajax-Integration#JSON > > If your ajax response is larger than 512Kb, I suggest you to use > this snippet: > http://www.symfony-project.org/snippets/snippet/116
That was a great help, thanks, it works just the way I wanted. But just to be sure: Is there a way to return a rendered view from an action so that this return could be used in another action? Thanks, Pierre > > > > On Jan 9, 2008 2:25 AM, Pierre <[EMAIL PROTECTED]> wrote: > > 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 > > > > -- > Noël GUILBERT > http://www.sensiolabs.com > http://www.symfony-project.com > Sensio Labs > Tél: +33 1 40 99 80 80 > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
