phpdeveloper82 Posted February 24, 2010 Share Posted February 24, 2010 I have started studying Zend Framework for my new project and now ready to start the work. But I didn't get much help in adding Ajax to Zend Framework. I am familiar with JQuery and wish to use the same on Zend Frame work also. Please send some good tutorials which helps me to understand the working of Ajax with Zend Framework. Quote Link to comment https://forums.phpfreaks.com/topic/193188-ajax-on-zend-framework/ Share on other sites More sharing options...
trq Posted February 24, 2010 Share Posted February 24, 2010 Nothing special to learn really. Your Javascript goes into js files which are included via the headScript helper. Your markup goes into your views as normal, then you make requests to controllers via a url. You can then have your actions check the request was made via the XMLHttpRequest object by using the controller objects isXmlHttpRequest() method. From there you can use Zend_Json to respond. Quote Link to comment https://forums.phpfreaks.com/topic/193188-ajax-on-zend-framework/#findComment-1017303 Share on other sites More sharing options...
phpdeveloper82 Posted March 1, 2010 Author Share Posted March 1, 2010 Thank you for your reply. But there are few things if goes advanced Ajax with JQuery on Zend Framework. But at the same time, we can develop ajax application easily as the same way we do in the in normal php coding. Steps: 1. Include jquery library in the layout 2. Create a Helper Class and include different js file to handle ajax request based on controller and function name or write the JQuery directly to the phtml page. I would like to share a good link with you: http://www.zendcasts.com/ Quote Link to comment https://forums.phpfreaks.com/topic/193188-ajax-on-zend-framework/#findComment-1019868 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.