views:

321

answers:

3

Hi, I am looking out for any library that would facilitate Ajax in Zend (if any exist). Also can somebody throw some light on the built-in Ajax support that comes with ZF. I tried googling but was not satisfied with the results.

-DevD

+1  A: 

Dojo is shipped with the Zend Framework and they facilitate ajax style calls.

If you have a look at Dojo ToolKit to find out more about the what that framework can provide you, these include the ajax calls (search for xhrGet and xhrPost)

Also if you look here in the framework documentation to help you use dojo in your Zend Framework Project. Zend_Dojo

Hope this helps

Grant Collins
Thanks Grant for the info, Nice to see Zend-Dojo sync up. but I would rather prefer Jquery over DoJo unless n until it eases up my work with some build in support from ZF (may be few helpers functions) to dojo.
where is the difference between my and your link?
ArneRie
+2  A: 

Hi,

altough JQuery is well integrated with the Zend Framework. There is an libray inside the /extras Folder.

There are helpers for AjaxRequests, different View Widgets, and for loading the Library from Google/AOL CDN.

For more information i would suggest to visit the Zend Framework Documentation for :

ZendX Jquery

ArneRie
Beware: the documentation of `ZendX_JQuery` is unexisting. It's a good component for really basic ajax-solutions though.
chelmertz
yup ZendX_JQuery is somthing similar I was looking upto. @chelmertz: you are right, there doesnt exist any specific detail documentation for the same.though I found something @ http://all4you.net/ZendFramework-1.10.1/extras/documentation/manual/extras/en/zendx.jquery.html#zendx.jquery.introduction
+1  A: 

If you have any expertise in YUI JS framework, it is really easy to listen to the events and make Ajax calls and to collect your elements through Selector query and then apply CSS rules on them (if that is what you want). You can have a look at this tutorial to understand more about Zend-YUI relationship

http://ciitronian.com/blog/programming/javascript/creating-ajax-based-form-zend-framework-yui/

Hammad Tariq