jQuery Reference Guide

A Comprehensive Exploration of the Popular JavaScript Library

jQuery Reference Guide

Starting
Jonathan Chaffer, Karl Swedberg

A Comprehensive Exploration of the Popular JavaScript Library
$13.20
$39.99
RRP $23.99
RRP $39.99
eBook
Print + eBook
$12.99 p/month

Want this title & more? Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.
+ Collection
Free Sample

Book Details

ISBN 139781847193810
Paperback268 pages

About This Book

  • Organized menu to every method, function, and selector in the jQuery library
  • Quickly look up features of the jQuery library
  • Understand the anatomy of a jQuery script
  • Extend jQuery's built-in capabilities with plug-ins, and even write your own

 

Who This Book Is For

This book is for web developers who want a broad, organized view of all the jQuery library has to offer or a quick reference on their desks to refer to for particular details.

The reader needs the basics of HTML and CSS, and should be comfortable with the syntax of JavaScript, but no knowledge of jQuery is assumed. This is not an introductory title and if you are looking to get started with jQuery (or JavaScript libraries in general) then you are looking for Learning jQuery.

Buy jQuery Reference Guide

 

Table of Contents

Chapter 1: Anatomy of a jQuery Script
A Dynamic Table of Contents
Script Dissection
Summary
Chapter 2: Selector Expressions
CSS Selectors
XPath Selectors
Attribute Selectors
Form Selectors
Custom Selectors
Chapter 3: DOM Traversal Methods
The jQuery Factory Function
$()
Filtering Methods
Tree Traversal Methods
Miscellaneous Traversal Methods
Chapter 4: DOM Manipulation Methods
General Attributes
Style Properties
Class Attribute
DOM Replacement
DOM Insertion, Inside
DOM Insertion, Outside
DOM Insertion, Around
DOM Copying
DOM Removal
Chapter 5: Event Methods
Event Handler Attachment
Document Loading
Mouse Events
Form Events
Keyboard Events
Browser Events
Chapter 6: Effect Methods
Pre-Packaged Effects
Customized Effects
Chapter 7: AJAX Methods
Low-Level Interface
Shorthand Methods
Global AJAX Event Handlers
Helper Function
Chapter 8: Miscellaneous Methods
Setup Methods
DOM Element Methods
Collection Manipulation
Chapter 9: Plug-In API
Using a Plug-in
Developing a Plug-in
Example: Maintaining Multiple Event Logs
Summary
Chapter 10: Dimensions Plug-In
Size Methods
Position Methods
Chapter 11: Form Plug-In
AJAX Form Submission
Retrieving Form Values
Form Manipulation

What You Will Learn

  • Get a broad overview of the jQuery library's capabilities with a real-world example
  • Examine any jQuery method, function, and selector in detail, wherever and whenever it is needed
  • Investigate jQuery's plug-in architecture, using a variety of approaches to extend the library's capabilities
  • Explore the Dimensions plug-in for getting the size and position of any element on the page—even the document and browser window
  • Discover the Form plug-in for combining AJAX techniques with HTML forms

In Chapter 1, Anatomy of a jQuery Script, we begin by dissecting a working jQuery example. This script will serve as a roadmap for this book, directing you to the chapters containing more information on particular jQuery capabilities.

The heart of the book is a set of reference chapters that allow you to quickly look up the details of any jQuery method. Chapter 2, Selector Expressions, lists every available selector for finding page elements.

Chapter 3, DOM Traversal Methods, builds on the previous chapter with a catalog of jQuery methods for finding page elements.

Chapter 4, DOM Manipulation Methods, describes every opportunity for inspecting and modifying the HTML structure of a page.

Chapter 5, Event Methods, details each event that can be triggered and reacted to by jQuery.

Chapter 6, Effect Methods, defines the range of animations built into jQuery, as well as the toolkit available for building your own.

Chapter 7, AJAX Methods lists the ways in which jQuery can initiate and respond to server communication without refreshing the page.

Chapter 8, Miscellaneous Methods, covers the remaining capabilities of the jQuery library that don't neatly fit into the other categories.

In the final three chapters, we dive into the extension mechanisms jQuery makes available. Chapter 9, Plug-in API, reveals four major ways to enhance jQuery's already robust capabilities using a plug-in. The chapter shows how to use plug-ins and we develop a custom plug-in from the ground up.

Chapter 10, Dimensions Plug-in, walks you through the advanced measurement tools available in this popular plug-in.

Chapter 11, Form Plug-in, empowers you to bring AJAX technology and HTML forms together, a process which is made easy by this plug-in.

Appendix A, Online Resources, provides a handful of informative websites on a wide range of topics related to jQuery, JavaScript, and web development in general.

Appendix B, Development Tools, recommends a number of useful third-party programs and utilities for editing and debugging jQuery code within your personal development environment.

In Detail

jQuery is a powerful, yet easy-to-use JavaScript library that helps web developers and designers add dynamic, interactive elements to their sites, smoothing out browser inconsistencies and greatly reducing development time. In this book, the creators of the popular jQuery learning resource, learningquery.com, share their knowledge, experience, and enthusiasm to bring you a comprehensive reference to the popular JavaScript library.

This book offers an organized menu of every jQuery method, function, and selector. Each method and function is introduced with a summary of its syntax and a list of its parameters and return value, followed by a discussion, with examples where applicable, to assist in getting the most out of jQuery and avoiding the pitfalls commonly associated with JavaScript and other client-side languages.

If you're already familiar with JavaScript programming, this book will help you dive right into advanced jQuery concepts. You'll be able to experiment on your own, trusting the pages of this book to provide information on the intricacies of the library, where and when you need it. If you're still hungry for more, the book shows you how to cook up your own extensions with jQuery's elegant plug-in architecture.

This book is a companion to Learning jQuery: Better Interaction Design and Web Development with Simple JavaScript Techniques.
Learning jQuery begins with a tutorial to jQuery, followed by an examination of common, real-world client-side problems, and solutions for each of them, making it an invaluable resource for answers to all your jQuery questions.

jQuery Reference Guide digs deeper into the library, taking you through the syntax specifications and following up with a detailed discussion. You'll discover the untapped possibilities that jQuery makes available, and hone your skills as you return to this guide time and again.

Authors

Table of Contents

Chapter 1: Anatomy of a jQuery Script
A Dynamic Table of Contents
Script Dissection
Summary
Chapter 2: Selector Expressions
CSS Selectors
XPath Selectors
Attribute Selectors
Form Selectors
Custom Selectors
Chapter 3: DOM Traversal Methods
The jQuery Factory Function
$()
Filtering Methods
Tree Traversal Methods
Miscellaneous Traversal Methods
Chapter 4: DOM Manipulation Methods
General Attributes
Style Properties
Class Attribute
DOM Replacement
DOM Insertion, Inside
DOM Insertion, Outside
DOM Insertion, Around
DOM Copying
DOM Removal
Chapter 5: Event Methods
Event Handler Attachment
Document Loading
Mouse Events
Form Events
Keyboard Events
Browser Events
Chapter 6: Effect Methods
Pre-Packaged Effects
Customized Effects
Chapter 7: AJAX Methods
Low-Level Interface
Shorthand Methods
Global AJAX Event Handlers
Helper Function
Chapter 8: Miscellaneous Methods
Setup Methods
DOM Element Methods
Collection Manipulation
Chapter 9: Plug-In API
Using a Plug-in
Developing a Plug-in
Example: Maintaining Multiple Event Logs
Summary
Chapter 10: Dimensions Plug-In
Size Methods
Position Methods
Chapter 11: Form Plug-In
AJAX Form Submission
Retrieving Form Values
Form Manipulation

Book Details

ISBN 139781847193810
Paperback268 pages
Read More