Skip to Main Content
Adding Ajax
book

Adding Ajax

by Shelley Powers
June 2007
Intermediate to advanced content levelIntermediate to advanced
400 pages
9h 52m
English
O'Reilly Media, Inc.
Content preview from Adding Ajax

Other Libraries

There are a growing number of Ajax libraries available to use, from the simple to the complex. We'll briefly examine a few others to give you an idea of the wealth of useful functionality already created for your use.

Tip

A handy list of many of the Ajax libraries can be found at the eDevil weblog at http://edevil.wordpress.com/2005/11/14/javascript-libraries-roundup.

jQuery

One library that's quickly gaining popularity is jQuery, available at http://jquery.com. It's small, fast, and provides fundamental cross-browser methods to work with the DOM rather than higher-order effects.

Tip

The Interface library, found at http://interface.eyecon.ro, provides higher-order effects for jQuery, similar to what script.aculo.us provides for Prototype.

Unlike the other libraries, though, jQuery has only one object, the jQuery object. Unfortunately, jQuery uses the dollar sign shortcut, $( ), to reference this object. If you want to use jQuery with other libraries, especially Prototype, you have to use the jQuery.noConflict( ) function call at the very start of any script block to restore the other libraries back to their normal behavior. The literal jQuery object is then used as a way of accessing all of the functionality.

jQuery provides a high degree of chainability, which is the ability to chain function calls, one after another. This type of functionality requires that the library object methods return a reference to the object itself, which is used in the next method in the chain. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ajax: The Definitive Guide

Ajax: The Definitive Guide

Anthony T. Holdener III
Ajax Design Patterns

Ajax Design Patterns

Michael Mahemoff
Web Development with JavaScript and Ajax Illuminated

Web Development with JavaScript and Ajax Illuminated

Richard Allen, Kai Qian, Lixin Tao, Xiang Fu

Publisher Resources

ISBN: 9780596529369Supplemental ContentErrata Page