Ajax Auto Completion with Zend_Form

intro
This article shows ajax auto completion with Zend_Form.
You can see the screens from the demonstration site.

1.Create Controller
Create the file application/constorllers/LocaleController.php with the following content.
2.Create View
Create the file application/views/scripts/locale/index.phtml with the following content.

Specify the style class of body tag.

3.Check
Access the web server and check ajax auto completion for the element.
History
Date Content
2008/4/29 Published
2008/4/29 Added description about specifying the style class of body tag.

2 Comments

  1. This all seems a nice post and theory but what if this form itself is loaded by an ajax call? How to you inject the Javascript of the view in the page of the client and get it executed?

  2. If you can use jquery, you can load a form html with the following code.

    In your controller, please use ajaxcontext.

    And create the file yourAction.ajax.phtml in your view script folder. It could be same with the above index.phtml file.

Leave a Reply

Your email address will not be published. Required fields are marked *