PacktLib: Learning jQuery : Better Interaction Design and Web Development with Simple JavaScript Techniques

Learning jQuery

Credits

About the Authors

About the Reviewers

Preface

Getting Started

What jQuery Does

Why jQuery Works Well

Our First jQuery Document

Summary

Selectors—How to Get Anything You Want

The Document Object Model

The $() Factory Function

CSS Selectors

XPath Selectors

Custom Selectors

DOM Traversal Methods

Accessing DOM Elements

Summary

Events—How to Pull the Trigger

Performing Tasks on Page Load

Simple Events

Compound Events

Limiting and Ending Events

Simulating User Interaction

Summary

Effects—How to Add Flair to Your Actions

Inline CSS Modification

Basic Hide and Show

Effects and Speed

Multiple Effects

Simultaneous versus Queued Effects

In a Nutshell

Summary

DOM Manipulation—How to Change Your Page on Command

Manipulating Attributes

Inserting New Elements

Moving Elements

Wrapping Elements

Copying Elements

DOM Manipulation Methods in a Nutshell

Summary

AJAX—How to Make Your Site Buzzword-Compliant

Loading Data on Demand

Choosing a Data Format

Passing Data to the Server

Keeping an Eye on the Request

AJAX and Events

Security Limitations

Summary

Table Manipulation

Sorting

Pagination

The Finished Code

Advanced Row Striping

Row Highlighting

Tooltips

Collapsing and Expanding

Filtering

The Finished Code

Summary

Forms with Function

Progressively Enhanced Form Styling

Form Validation

Checkbox Manipulation

The Finished Code

Placeholder Text for Fields

AJAX Auto-Completion

The Finished Code

Input Masking

Numeric Calculations

Deleting Items

Editing Shipping Information

The Finished Code

Summary

Shufflers and Rotators

Headline Rotator

An Image Carousel

Image Enlargement

The Finished Code

Summary

Plug-ins

How to Use a Plug-in

Popular Plug-Ins

Finding Plug-in Documentation

Developing a Plug-in

Summary

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Development Tools

Development Tools

Development Tools

Development Tools

Development Tools

JavaScript Closures

JavaScript Closures

JavaScript Closures

JavaScript Closures

JavaScript Closures

JavaScript Closures

JavaScript Closures

JavaScript Closures