[symfony-users] Re: Using ajax for input text update

2009-04-17 Thread FÁSI Gábor
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,

[symfony-users] Re: Using ajax for input text update

2009-04-17 Thread Tomasz Ignatiuk
OK :) Yes, it is done automatically while using IsXMLHTTPRequest 2009/4/17 FÁSI Gábor maerl...@gmail.com 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

[symfony-users] Re: Using ajax for input text update

2009-04-16 Thread Tomasz Ignatiuk
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

[symfony-users] Re: Using ajax for input text update

2009-04-16 Thread Steve the Canuck
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

[symfony-users] Re: Using ajax for input text update

2009-04-16 Thread Tomasz Ignatiuk
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

[symfony-users] Re: Using ajax for input text update

2009-04-16 Thread Alexandru-Emil Lupu
You could get a json response after the function is executed. Using that json, you could make a callback that will allow you to update inputs, or other elements. maybe http://www.prototypejs.org/api/ajax/request http://www.prototypejs.org/api/ajax/updater Alecs On Thu, Apr 16, 2009 at 5:09 PM,

[symfony-users] Re: Using ajax for input text update

2009-04-16 Thread Tomasz Ignatiuk
Thank you :) 2009/4/16 Alexandru-Emil Lupu gang.al...@gmail.com You could get a json response after the function is executed. Using that json, you could make a callback that will allow you to update inputs, or other elements. maybe http://www.prototypejs.org/api/ajax/request