|
[symfony-users] Re: How to return response slots content as JSON data ?: msg#00831symfony-users
Åukasz, I use ajax on an "inverse logic" where the php tells the js what to do on each response, using a type of RPC or RMI. When I call PHP I have a class that forges a response like: {"commands":[As you can see this response is processed by js that calls the methods I need. This response has 2 commands and so can fill 2 "slots" os areas on the html. Then I use a js template system (http://embeddedjs.com/) to render the received json in html. This works very fine here. You might send html intho the response either if you need to. I would keep an action for each diferent type of request to keep organization and use sf security system, but the template can be pre loaded and keeped into a js var. 2009/7/29 Åukasz Wojciechowski <lukasz.wojciechowski@xxxxxxxxx>
--~--~---------~--~----~------------~-------~--~----~ 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@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to symfony-users+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |