ZF and Ajax:
We assume that you have a fair knowledge over Ajax but let's have a quick look:
Asynchronous: A website which is developed in Ajax, use the XMLHttpRequest object.
XML: XML helps us to send data from the server to the browser within an asynchronous request. XML is used to format the data.
General use of Ajax are as follows:
Since this tutorial is based on ZF 1.10, we will demonstrate the examples based on jQuery, now let's discuss on this topic:
ZF version 1.7 integrates jQuery view and it offers the following features:
jQuery related View Helpers can be accessed through ZF's extra libray. There are two ways to enable this helper, either add the following line to the view helper path:
or use ZendX_JQuery::enableView(Zend_View_Interface $view) method.
Recommend the tutorial