Learning jQuery 1.3

Better Interaction Design and Web Development with Simple JavaScript Techniques

Learning jQuery 1.3

Learning
Jonathan Chaffer, Karl Swedberg

Better Interaction Design and Web Development with Simple JavaScript Techniques
$10.00
$39.99
RRP $39.99
RRP $39.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 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 139781847196705
Paperback444 pages

Book Description

To build interesting, interactive sites, developers are turning to JavaScript libraries such as jQuery to automate common tasks and simplify complicated ones. Because many web developers have more experience with HTML and CSS than with JavaScript, the library's design lends itself to a quick start for designers with little programming experience. Experienced programmers will also be aided by its conceptual consistency.

Revised and updated for version 1.3 of jQuery, this book teaches you the basics of jQuery for adding interactions and animations to your pages. Even if previous attempts at writing JavaScript have left you baffled, this book will guide you past the pitfalls associated with AJAX, events, effects, and advanced JavaScript language features.

In this book, the authors share their knowledge, experience, and enthusiasm about jQuery to help you get the most from the library and to make your web applications shine. The book introduces jQuery and shows how you can write a functioning jQuery program in just three lines of code. It then guides you through CSS selectors and shows how to enhance the basic event handling mechanisms to give them a more elegant syntax. You will then learn to add impact to your actions through a set of simple visual effects and also to create, copy, reassemble, and embellish content using jQuery's DOM modification methods. You will also learn to send and retrieve information with AJAX methods. The book will then step you through many detailed, real-world examples and even equip you to extend the jQuery library itself with your own plug-ins.

Table of Contents

Chapter 1: Getting Started
What jQuery does
Why jQuery works well
History of the jQuery project
Our first jQuery-powered web page
Summary
Chapter 2: Selectors
The Document Object Model
The $() factory function
CSS selectors
Attribute selectors
Custom selectors
DOM traversal methods
Accessing DOM elements
Summary
Chapter 3: Events
Performing tasks on page load
Simple events
Compound events
The journey of an event
Altering the journey: the event object
Removing an event handler
Simulating user interaction
Summary
Chapter 4: Effects
Inline CSS modification
Basic hide and show
Effects and speed
Compound effects
Creating custom animations
Simultaneous versus queued effects
Summary
Chapter 5: DOM Manipulation
Manipulating attributes
Inserting new elements
Moving elements
Wrapping elements
Copying elements
DOM manipulation methods in a nutshell
Summary
Chapter 6: AJAX
Loading data on demand
Choosing a data format
Passing data to the server
Keeping an eye on the request
AJAX and events
Security limitations
Additional options
Summary
Chapter 7: Table Manipulation
Sorting and paging
Modifying table appearance
Summary
Chapter 8: Forms with Function
Improving a basic form
Compact forms
Working with numeric form data
Summary
Chapter 9: Shufflers and Rotators
Headline rotator
An image carousel
Summary
Chapter 10: Using Plugins
Finding plugins and help
How to use a plugin
The Form plugin
The jQuery UI plugin library
Other recommended plugins
Summary
Chapter 11: Developing plugins
Adding new global functions
Adding jQuery Object Methods
DOM traversal methods
Adding new shortcut methods
Method parameters
Adding a selector expression
Sharing a plugin with the world
Summary

What You Will Learn

This book will give you the tools you need to be on the cutting edge of the web development community. With these techniques at your disposal, you can:

  • Use selectors to get anything you want from a page
  • Make things happen on your page with events
  • Add flair to your actions with animation effects
  • Change your page on command with DOM manipulation
  • Use AJAX to get the most out of server-side code
  • Transform drab, static information containers into beautiful, dynamic tables
  • Breathe new life into online forms
  • Create dynamic shufflers, rotators, and galleries
  • Get started with official jQuery plug-ins
  • Customize by writing your own jQuery plug-ins

Authors

Table of Contents

Chapter 1: Getting Started
What jQuery does
Why jQuery works well
History of the jQuery project
Our first jQuery-powered web page
Summary
Chapter 2: Selectors
The Document Object Model
The $() factory function
CSS selectors
Attribute selectors
Custom selectors
DOM traversal methods
Accessing DOM elements
Summary
Chapter 3: Events
Performing tasks on page load
Simple events
Compound events
The journey of an event
Altering the journey: the event object
Removing an event handler
Simulating user interaction
Summary
Chapter 4: Effects
Inline CSS modification
Basic hide and show
Effects and speed
Compound effects
Creating custom animations
Simultaneous versus queued effects
Summary
Chapter 5: DOM Manipulation
Manipulating attributes
Inserting new elements
Moving elements
Wrapping elements
Copying elements
DOM manipulation methods in a nutshell
Summary
Chapter 6: AJAX
Loading data on demand
Choosing a data format
Passing data to the server
Keeping an eye on the request
AJAX and events
Security limitations
Additional options
Summary
Chapter 7: Table Manipulation
Sorting and paging
Modifying table appearance
Summary
Chapter 8: Forms with Function
Improving a basic form
Compact forms
Working with numeric form data
Summary
Chapter 9: Shufflers and Rotators
Headline rotator
An image carousel
Summary
Chapter 10: Using Plugins
Finding plugins and help
How to use a plugin
The Form plugin
The jQuery UI plugin library
Other recommended plugins
Summary
Chapter 11: Developing plugins
Adding new global functions
Adding jQuery Object Methods
DOM traversal methods
Adding new shortcut methods
Method parameters
Adding a selector expression
Sharing a plugin with the world
Summary

Book Details

ISBN 139781847196705
Paperback444 pages
Read More

Read More Reviews