Free Sample
+ Collection

Learning jQuery 1.3

Jonathan Chaffer, Karl Swedberg

Better Interaction Design and Web Development with Simple JavaScript Techniques
RRP $23.99
RRP $39.99
Print + eBook

Want this title & more?

$12.99 p/month

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.

Book Details

ISBN 139781847196705
Paperback444 pages

About This Book

The newest version of this book is available here:

Learning jQuery, Third Edition Learning jQuery, Third Edition

Available Now.
  • An introduction to jQuery that requires minimal programming experience
  • Detailed solutions to specific client-side problems
  • For web designers to create interactive elements for their designs
  • For developers to create the best user interface for their web applications
  • Packed with great examples, code, and clear explanations
  • Revised and updated version of the first book to help you learn jQuery

Who This Book Is For

This book is for web designers who want to create interactive elements for their designs, and for developers who want to create the best user interface for their web applications. Basic JavaScript programming knowledge is required. You will need to know the basics of HTML and CSS, and should be comfortable with the syntax of JavaScript. No knowledge of jQuery is assumed, nor is experience with any other JavaScript libraries required.

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
Chapter 2: Selectors
The Document Object Model
The $() factory function
CSS selectors
Attribute selectors
Custom selectors
DOM traversal methods
Accessing DOM elements
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
Chapter 4: Effects
Inline CSS modification
Basic hide and show
Effects and speed
Compound effects
Creating custom animations
Simultaneous versus queued effects
Chapter 5: DOM Manipulation
Manipulating attributes
Inserting new elements
Moving elements
Wrapping elements
Copying elements
DOM manipulation methods in a nutshell
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
Chapter 7: Table Manipulation
Sorting and paging
Modifying table appearance
Chapter 8: Forms with Function
Improving a basic form
Compact forms
Working with numeric form data
Chapter 9: Shufflers and Rotators
Headline rotator
An image carousel
Chapter 10: Using Plugins
Finding plugins and help
How to use a plugin
The Form plugin
The jQuery UI plugin library
Other recommended plugins
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

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

In Detail

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.


Read More