You can call any Javascript functions be they your own or Prototype ones On 2/25/09, Gareth McCumskey <[email protected]> wrote: > > http://www.symfony-project.org/book/1_0/11-Ajax-Integration#chapter_11_json > > specifically as an example: > > <?php echo link_to_remote('Refresh the letter', array( > 'url' => 'publishing/refresh', > > 'complete' => 'updateJSON(request, json)' > )) ?> > > <?php echo javascript_tag(" > > function updateJSON(request, json) > { > var nbElementsInResponse = json.length; > for (var i = 0; i < nbElementsInResponse; i++) > { > Element.update(json[i][0], json[i][1]); > } > } > ") ?> > > > > On 2/25/09, Hofferek Attila <[email protected]> wrote: >> >> >> Gareth McCumskey írta: >> >> > >> http://www.symfony-project.org/book/1_0/11-Ajax-Integration#chapter_11_sub_creating_callbacks >> > >> > ;) >> >> >> How can You pass the response to Your callback function, for example in >> the loaded event? >> -- >> >> Hofferek Attila >> >> >> >> >> >
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
