Mixing Zend Framework back-end and jQuery front end is not so much a technical challenage as much as one of inovation and wit. Its really nothing more than asigning <div> placeholders in template and then generating variables as needed depending on whether its a xmlhttp request or not. Then its all up to your frontend to pick up the response and handle it.
This will (probably) be last topic about AJAX and beginner style in general. Will move on to more complex issues next.
Key notes in the presentation:
- Creating placeholders in view template for...
- ... for jQuery to be able to work with them.
- Asign variables to view if xmlhttprequest so that ...
- jQuery can pick them up through JSON and use them to manipulate DOM.
Download soarce
JSON
ZendX_JQuery
to post comments.