Chapter 2. ZendX_JQuery

Table of Contents

2.1. Introduction
2.2. ZendX_JQuery View Helpers
2.2.1. jQuery() View Helper
2.2.1.1. jQuery NoConflict Mode
2.2.1.2. jQuery UI Themes
2.2.1.3. Methods Available
2.2.1.3.1. jQuery Core Library methods
2.2.1.3.2. jQuery UI Library methods
2.2.1.3.3. jQuery Helper Utility methods
2.2.1.4. Refactoring jQuery environment with setRenderMode()
2.2.1.5. Migrations
2.2.2. JQuery Helpers
2.2.2.1. AjaxLink Helper
2.2.2.1.1. Shortcut Effects
2.2.2.2. jQuery UI Library Helpers
2.2.2.2.1. jQuery UI Form Helpers
2.2.2.2.2. Using an Action Helper to Send Data to AutoComplete
2.2.2.2.3. jQuery UI Layout Helpers
2.3. ZendX_JQuery Form Elements and Decorators
2.3.1. General Elements and Decorator Usage
2.3.2. Form Elements
2.3.3. Form Decorators

2.1. Introduction

As of version 1.7, Zend Framework integrates jQuery view and form helpers through its extras library. The jQuery support is meant as an alternative to the already existing Dojo library integration. Currently jQuery can be integrated into your Zend Framework applications in the following ways:

  • View helper to help setup the jQuery (Core and UI) environment

  • jQuery UI specific Zend_View helpers

  • jQuery UI specific Zend_Form elements and decorators

By default the jQuery javascript dependencies are loaded from the Google Ajax Library Content Distribution Network. The CDN offers both jQuery Core and jQuery UI access points and the view helpers therefore can already offer you most the dependencies out of the box. Currently the Google CDN offers jQuery UI support up to version 1.5.2, but the jQuery view and form helpers already make use of the UI library 1.6 version (AutoComplete, ColorPicker, Spinner, Slider). To make use of these great additions you have to download the release candidate version of the jQuery UI library from its website.