You can use a normal template to be rendered after an ajax call, just set hasLayout to false either in view.yml, or in your action. I think symfony can do this automatically when the IsXMLHTTPRequest http header is set (automatically done by prototype and jquery).
On Thu, Apr 16, 2009 at 16:09, Tomasz Ignatiuk <tomek.ignat...@gmail.com> wrote: > Thank you, now I know how exactly return data :) with renderText or > renderPartial :) > > Main problem was that remote_function could update only elements like DIVs, > not values of input. I thought that this is how it working. But no one > wrote enywhere that you can ommit update and use success with data. There I > put jQuery function that updates value of an input. > > 2009/4/16 Steve the Canuck <steve.san...@gmail.com> >> >> There are a few ways to do ajax based rendering. One way is to have >> the Ajax based action you are calling return you the chunk of HTML and >> then you just render that HTML. Another way is for the Ajax based >> action to return you a response (more appropriate if there are >> multiple pieces of data and you may want to render the data in various >> structures in the HTML document. Which method you go with depends on >> which jquery method you call. >> >> Take a look here: >> >> http://www.symfony-project.org/jobeet/1_2/Propel/en/18 >> >> On Apr 16, 6:37 am, Tomasz Ignatiuk <tomek.ignat...@gmail.com> wrote: >> > So maybe any guess how to get data from action via ajax and put it >> > into input? >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---