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, Tomasz Ignatiuk
<[email protected]>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 <[email protected]>
>
>
>> 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 <[email protected]> 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 [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