Thread: zend + ajax
View Single Post
  #4 (permalink)  
Old 04-18-2008, 01:26 PM
Elemental's Avatar
Elemental Elemental is offline
Senior Member
 
Join Date: Jul 2007
Posts: 122
Default

The easiest way to check the request in your controller actions to see if its an ajax request then you can use Zend_Json or make your view script an xml return if it is.

$this->_request->isXmlHttpRequest() will return true if your ajax call has set the proper header. If not you can usually set the header with you JS framework.

If you have more specific questions please ask, this is a fairly broad topic and there are many ways to pull it off.
__________________
Zend Framework Resources: Zend Webinars | Reference Manual | API Docs | Books | FreeNode: #zftalk
Getting Started Tutorials: Getting started with ZF | Getting started with Zend Auth
Reply With Quote