Skip to Main Content
Pro jQuery 2.0, Second Edition
book

Pro jQuery 2.0, Second Edition

by Adam Freeman
October 2013
Intermediate to advanced content levelIntermediate to advanced
1044 pages
24h 36m
English
Apress
Content preview from Pro jQuery 2.0, Second Edition

CHAPTER 36

image

Using Deferred Objects

Throughout this book, you have seen examples that relied on callbacks – you provide a function that is executed when something occurs. A good example is the way events are handled, using a method such as click, passing in a function as an argument. The code statements in the function are not performed until the user triggers the event – until that point our function is dormant.

Deferred objects is the jQuery term for a set of enhancements to the way callbacks are used. When using deferred objects, callbacks can be used in any situation and not just for events; and they provide a lot of options and control over ...

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

Beyond jQuery

Beyond jQuery

Ray Nicholus
jQuery UI

jQuery UI

Eric Sarrion

Publisher Resources

ISBN: 9781430263883Purchase book