Chapter 65. ZendX_JQuery

Table of Contents

65.1. Introduction
65.2. ZendX_JQuery View Helpers
65.2.1. jQuery() View Helper
65.2.1.1. jQuery NoConflict Mode
65.2.1.2. jQuery UI Themes
65.2.1.3. Methods Available
65.2.1.3.1. jQuery Core Library methods
65.2.1.3.2. jQuery UI Library methods
65.2.1.3.3. jQuery Helper Utility methods
65.2.1.4. Refactoring jQuery environment with setRenderMode()
65.2.1.5. Migrations
65.2.2. JQuery Helpers
65.2.2.1. AjaxLink Helper
65.2.2.1.1. Shortcut Effects
65.2.2.2. jQuery UI Library Helpers
65.2.2.2.1. jQuery UI Form Helpers
65.2.2.2.2. Using an Action Helper to Send Data to AutoComplete
65.2.2.2.3. jQuery UI Layout Helpers
65.3. ZendX_JQuery Form Elements and Decorators
65.3.1. General Elements and Decorator Usage
65.3.2. Form Elements
65.3.3. Form Decorators

65.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 this great additions you have to download the release candidate version of the jQuery UI library website.