Learning jQuery, Third Edition and over one million other books are available for Amazon Kindle . Learn more


or
Sign in to turn on 1-Click ordering.
or
Amazon Prime free trial required. Sign up when you check out. Learn more
More Buying Choices
Have one to sell? Sell yours here
or
Get a £9.30 Amazon.co.uk Gift Card
Learning jQuery, Third Edition
 
 
Start reading Learning jQuery, Third Edition on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Learning jQuery, Third Edition [Paperback]

Jonathan Chaffer , Karl Swedberg
4.0 out of 5 stars  See all reviews (2 customer reviews)
RRP: £24.99
Price: £23.74 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
You Save: £1.25 (5%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In stock.
Dispatched from and sold by Amazon.co.uk. Gift-wrap available.
Only 1 left in stock--order soon (more on the way).
Want guaranteed delivery by Friday, June 1? Choose Express delivery at checkout. See Details

Formats

Amazon Price New from Used from
Kindle Edition £11.39  
Paperback £23.74  
Trade In this Item for up to £9.30
Get an extra £5 when you trade in books worth £10 or more until June 30, 2012. Trade in Learning jQuery, Third Edition for an Amazon.co.uk gift card of up to £9.30, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Find more products eligible for trade-in.

Frequently Bought Together

Learning jQuery, Third Edition + jQuery UI 1.8: The User Interface Library for jQuery + HTML5 and CSS3: Develop with Tomorrow's Standards Today (Pragmatic Programmers)
Price For All Three: £64.88

Show availability and delivery details

Buy the selected items together


Product details

  • Paperback: 428 pages
  • Publisher: Packt Publishing; 3rd New edition edition (23 Sep 2011)
  • Language English
  • ISBN-10: 1849516545
  • ISBN-13: 978-1849516549
  • Product Dimensions: 23.5 x 19.1 x 2.2 cm
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (2 customer reviews)
  • Amazon Bestsellers Rank: 33,563 in Books (See Top 100 in Books)

Product Description

Product 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.

Learning jQuery Third Edition is revised and updated for version 1.6 of jQuery. You will learn 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.

Starting with an introduction to jQuery, you will first be shown how to write a functioning jQuery program in just three lines of code. Learn how to add impact to your actions through a set of simple visual effects and to create, copy, reassemble, and embellish content using jQuery's DOM modification methods. The book will step you through many detailed, real-world examples, and even equip you to extend the jQuery library itself with your own plug-ins.


What you will learn from this book :
Create interactive elements for your web designs
Learn how to create the best user interface for your web applications
Use selectors in a variety of ways to get anything you want from a page
Make things happen on your webpages with events
Add flair to your actions with a variety of animation effects
Discover the new features available in jQuery 1.6 in this third update of this popular jQuery book



Approach
Step through each of the core concepts of the jQuery library, building an overall picture of its capabilities. Once you have thoroughly covered the basics, the book returns to each concept to cover more advanced examples and techniques.


Who this book is written 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 and knowledge of HTML and CSS is required. No knowledge of jQuery is assumed, nor is experience with any other JavaScript libraries.

About the Author

Jonathan Chaffer


Jonathan Chaffer is the Chief Technology Officer of Structure Interactive, an interactive agency located in Grand Rapids, Michigan. There he oversees web development projects using a wide range of technologies, and continues to collaborate on day-to-day programming tasks as well.


In the open-source community, Jonathan has been very active in the Drupal CMS project, which has adopted jQuery as its JavaScript framework of choice. He is the creator of the Content Construction Kit, a popular module for managing structured content on Drupal sites. He is responsible for major overhauls of Drupal's menu system and developer API reference.


Jonathan lives in Grand Rapids with his wife, Jennifer.


Karl Swedberg


Karl Swedberg is a web developer at Structure Interactive in Grand Rapids, Michigan, where he spends much of his time implementing design with a focus on "web standards"--semantic HTML, well-mannered CSS, and unobtrusive JavaScript.


Before his current love affair with web development, Karl worked as a copy editor, a high-school English teacher, and a coffee house owner. His fascination with technology began in the early 1990s when he worked at Microsoft in Redmond, Washington, and it has continued unabated ever since.


Karl's other obsessions include photography, karate, English grammar, and fatherhood. He lives in Grand Rapids with his wife, Sara, and his two children, Benjamin and Lucia.


Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product)
 
(28)
(18)
(6)
(4)

Your tags: Add your first tag
 

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

5 star
0
3 star
0
2 star
0
1 star
0
Most Helpful Customer Reviews
7 of 7 people found the following review helpful
By C. Lung
Format:Paperback
Chapter 1: Getting Started

The book starts off with a quick introduction to jQuery, what it does and why it works so well. As the authors point out one of the great things you learn about jQuery right away is that it abstracts away browser quirks for you. With most browsers putting out a new version every few months this becomes a solid benefit for using jQuery.

The chapter includes an example (the HTML in the sample has been updated to HTML5) to inject a new CSS class to a particular DIV on the page. They demonstrate how this could be done without jQuery using plain JavaScript so you can see how much time jQuery saves you in terms of the amount of code you would need to write otherwise.

The chapter finishes off with a quick mention and demo (using Firebug) of some tools you can use to help work with jQuery more efficiently when your writing code.

Chapter 2: Selecting Elements

The basics are laid out in this chapter like the DOM and how HTML pages are structured, the $() function, CSS selectors and custom selectors. Each topic is shown either in code or an image to better represent it to the reader. The code examples are easy yet practical and even a beginner in HTML/JavaScript shouldn't have much of a problem following along. The sub-topics in the chapter are then used to introduce things like DOM traversal methods (their example of styling specific cells is useful), chaining, and ends off with accessing DOM elements.

Chapter 3: Handling Events

Towards the start of this chapter there is a good hint they mention regarding putting your style tags before the script tags in your HTML page, that way you know your page has been styled before any script has been run. This might be common sense to an experienced developer but to a new jQuery developer it is an excellent learning tip - one of the many hints throughout the book that will help you along and better understand not just jQuery but HTML/CSS/JavaScript as well.

This chapter does a good job of explaining and demoing events as well as how you can get jQuery and other JavaScript frameworks to play together nicely using jQuery.noConflict. Simple events are covered and then the authors move onto compound events all with real world demonstrations and code. This really is a great chapter and is packed with information like simulating user interaction, event bubbling, etc.

Chapter 4: Styling and Animating

This is probably the most fun chapter to read and work through the demos. You learn how to do animations (including custom ones) and effects. All the basics are here and are followed up with good demos and source code. In addition they show how to animate multiple properties at once (perhaps you want to use a slide and a fade effect together), simultaneous versus queued effect and ending off with working with multiple sets of elements.

Chapter 5: Manipulating the DOM

This chapter starts to get much more technical where you start to dive into doing heavier modifications like manipulating attributes (attr() and .removeAttr(), etc), creating/inserting/copying elements. Fortunately, the demos are great and present the content in a readable fashion that makes sense. This is a shorter chapter than some of the others but is packed with a lot of information. You might need to read it more than once to fully grasp it all if your new to jQuery.

Chapter 6: Sending Data with Ajax

Ah, AJAX! Perhaps one of the most discussed topics in jQuery books and articles for the past several years. No jQuery book would be complete without a discussion of the excellent support jQuery offers for AJAX. A simple example kicks off the chapter followed by loading JSON and XML content. Passing data to the server they show their demonstration and code using server-side PHP.

The section on Serializing a Form I think was good with the simple example they used but I do feel it should have followed up with a more real world example that was a bit more complex (using more then one form element, ex: using combo boxes, multiple textboxes, radio buttons, etc.).

The section Keeping an eye on the request is useful and shows you how to display a "loading" message wile your AJAX request is loading. They also show how to handle errors as well as security limitations which naturally leads right into a discussion of JSONP (JSON with Padding). The example is good and the typical warning on using JSONP is pointed out. The chapter ends with diving into the low-level Ajax method.

Chapters 7 and 8: Using Plugins and Developing Plugins

Both of these chapters are dealing with either using plugins or developing you own. Chapter 7 starts you off with locating, installing and using plugins. It ends off with one of the most useful plugin libraries available to jQuery which is jQuery UI. Also, as the book points out the jQuery UI library is really a set of plugins - you can pick and choose which ones you want in your project or take them all.

Chapter 8 goes over the types of plugins you can create and shows how to build each one. Both chapters give you enough to get started with plugins in general, at least to craft a simple to moderately difficult plugin. Its all the essential information you need if you do see yourself writing plugins in the future for jQuery.

Chapters 9, 10, 11, 12, 13

The final chapters in the book cover the initial topics but now dive deeper into them. Advanced Selectors and Transversing, Advanced Events, Advanced DOM Manipulation and Advanced AJAX are all covered and elaborated on.

This is an interesting way to split the book up with a great jQuery introduction at the start of the book and then diving deeper on each topic at the end of the book. Someone already familiar with jQuery could skip to the first half of the book when they feel they need more than just the basics. The same is true if your an expert in say AJAX but need to learn the basics of using plugins, etc. It makes for a great reference and a logical split of the basic information and the more advanced.

There are three appendixes as well: JavaScript Closures (a must read and the authors did a good job in simplifying a topic some developers can find difficult at first). Testing JavaScript with QUnit (used for functional testing and unit testing) and a quick reference make up the final parts of the book. QUnit is a very good tool for testing and it's nice that they included it in the book.

All-in-all this is a good book to learn jQuery with no fluff.
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
powerful and dynamic 20 Mar 2012
Format:Paperback
jQuery is a powerful enhancement of JavaScript, whose full scope is attested to by Chaffer and Swedberg. If you find yourself needing to write dynamic HTML pages, then JavaScript will also certainly be the choice of language. Yet the book explains that CSS is another necessity. While the still persistent differences between browsers in how they display web pages is an unfortunate reality of the marketplace. This can lead to spaghetti code of if-then ladders, that try to search for and have specific code for each major browser. The result is code bloat, with oft-unreadable logic, where the sheer mass of source acts against understanding.

For both these reasons, the text delves into how jQuery can help. Other reasons are also present. The overall point of the book is that jQuery lets you have concise code, where you can deprecate tangled details. For pedagogic reasons, the book starts right away with an example implemented in jQuery and then in vanilla JavaScript. The former code snippet is impressively short, while the latter is clear enough, but much longer. If you are experienced in programming in any other language, you can appreciate the multiple coding advantages of the former. The shorter length of code is less error prone, and much easier to follow the logic.

The book is also a good workout for understanding and manipulating the Document Object Model, where you can understand how this mediates between a web page and JavaScript. This is done in tandem with using CSS to control in a refactorable manner the final look of the page. An entire chapter (#5) is devoted to showing how jQuery can move around a DOM in very flexible ways. Standard explanations of a DOM give off that it is largely a static representation of a page. Yet the chapter can change your outlook. jQuery can embed sophisticated logic to produce a very dynamic DOM and final page.

The discussion on Ajax was also important enough to warrant an entire chapter. jQuery can readily access a JSON structure.

Of course, for the above important cases, the abilities of jQuery to interact are no accident. Behind the current version of jQuery is a substantial feedback loop, where developers of jQuery have explicitly modified the language to make exactly the current state.
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com:  4 reviews
19 of 20 people found the following review helpful
This is a good book to learn jQuery 21 Nov 2011
By C. Lung - Published on Amazon.com
Format:Paperback
Chapter 1: Getting Started

The book starts off with a quick introduction to jQuery, what it does and why it works so well. As the authors point out one of the great things you learn about jQuery right away is that it abstracts away browser quirks for you. With most browsers putting out a new version every few months this becomes a solid benefit for using jQuery.

The chapter includes an example (the HTML in the sample has been updated to HTML5) to inject a new CSS class to a particular DIV on the page. They demonstrate how this could be done without jQuery using plain JavaScript so you can see how much time jQuery saves you in terms of the amount of code you would need to write otherwise.

The chapter finishes off with a quick mention and demo (using Firebug) of some tools you can use to help work with jQuery more efficiently when your writing code.

Chapter 2: Selecting Elements

The basics are laid out in this chapter like the DOM and how HTML pages are structured, the $() function, CSS selectors and custom selectors. Each topic is shown either in code or an image to better represent it to the reader. The code examples are easy yet practical and even a beginner in HTML/JavaScript shouldn't have much of a problem following along. The sub-topics in the chapter are then used to introduce things like DOM traversal methods (their example of styling specific cells is useful), chaining, and ends off with accessing DOM elements.

Chapter 3: Handling Events

Towards the start of this chapter there is a good hint they mention regarding putting your style tags before the script tags in your HTML page, that way you know your page has been styled before any script has been run. This might be common sense to an experienced developer but to a new jQuery developer it is an excellent learning tip - one of the many hints throughout the book that will help you along and better understand not just jQuery but HTML/CSS/JavaScript as well.

This chapter does a good job of explaining and demoing events as well as how you can get jQuery and other JavaScript frameworks to play together nicely using jQuery.noConflict. Simple events are covered and then the authors move onto compound events all with real world demonstrations and code. This really is a great chapter and is packed with information like simulating user interaction, event bubbling, etc.

Chapter 4: Styling and Animating

This is probably the most fun chapter to read and work through the demos. You learn how to do animations (including custom ones) and effects. All the basics are here and are followed up with good demos and source code. In addition they show how to animate multiple properties at once (perhaps you want to use a slide and a fade effect together), simultaneous versus queued effect and ending off with working with multiple sets of elements.

Chapter 5: Manipulating the DOM

This chapter starts to get much more technical where you start to dive into doing heavier modifications like manipulating attributes (attr() and .removeAttr(), etc), creating/inserting/copying elements. Fortunately, the demos are great and present the content in a readable fashion that makes sense. This is a shorter chapter than some of the others but is packed with a lot of information. You might need to read it more than once to fully grasp it all if your new to jQuery.

Chapter 6: Sending Data with Ajax

Ah, AJAX! Perhaps one of the most discussed topics in jQuery books and articles for the past several years. No jQuery book would be complete without a discussion of the excellent support jQuery offers for AJAX. A simple example kicks off the chapter followed by loading JSON and XML content. Passing data to the server they show their demonstration and code using server-side PHP.

The section on Serializing a Form I think was good with the simple example they used but I do feel it should have followed up with a more real world example that was a bit more complex (using more then one form element, ex: using combo boxes, multiple textboxes, radio buttons, etc.).

The section Keeping an eye on the request is useful and shows you how to display a "loading" message wile your AJAX request is loading. They also show how to handle errors as well as security limitations which naturally leads right into a discussion of JSONP (JSON with Padding). The example is good and the typical warning on using JSONP is pointed out. The chapter ends with diving into the low-level Ajax method.

Chapters 7 and 8: Using Plugins and Developing Plugins

Both of these chapters are dealing with either using plugins or developing you own. Chapter 7 starts you off with locating, installing and using plugins. It ends off with one of the most useful plugin libraries available to jQuery which is jQuery UI. Also, as the book points out the jQuery UI library is really a set of plugins - you can pick and choose which ones you want in your project or take them all.

Chapter 8 goes over the types of plugins you can create and shows how to build each one. Both chapters give you enough to get started with plugins in general, at least to craft a simple to moderately difficult plugin. Its all the essential information you need if you do see yourself writing plugins in the future for jQuery.

Chapters 9, 10, 11, 12, 13

The final chapters in the book cover the initial topics but now dive deeper into them. Advanced Selectors and Transversing, Advanced Events, Advanced DOM Manipulation and Advanced AJAX are all covered and elaborated on.

This is an interesting way to split the book up with a great jQuery introduction at the start of the book and then diving deeper on each topic at the end of the book. Someone already familiar with jQuery could skip to the first half of the book when they feel they need more than just the basics. The same is true if your an expert in say AJAX but need to learn the basics of using plugins, etc. It makes for a great reference and a logical split of the basic information and the more advanced.

There are three appendixes as well: JavaScript Closures (a must read and the authors did a good job in simplifying a topic some developers can find difficult at first). Testing JavaScript with QUnit (used for functional testing and unit testing) and a quick reference make up the final parts of the book. QUnit is a very good tool for testing and it's nice that they included it in the book.

All-in-all this is a good book to learn jQuery with no fluff.
8 of 8 people found the following review helpful
So far the best book about jQuery I found 18 Jan 2012
By Eugene - Published on Amazon.com
Format:Paperback
The best book about jQuery I found so far:
* Very helpful for beginners and mid-skilled web developers
* Easy to read, good explanation of material
* Whole book is build around real-life samples (not just documentation interpretation like in most other books)
* Nice reference of main jQuery methods and properties at the end of book... still use it all the time

Huge "thank you" to the authors!

PS: one of the rare good technical books in our days
4 of 4 people found the following review helpful
One of the best sources for jQuery on the market 4 Mar 2012
By milo - Published on Amazon.com
Format:Paperback|Amazon Verified Purchase
I have purchased and read three or four jQuery books and this is hands down the most complete.

Other books step through simple examples of jQuery selectors, method syntax and usage. The authors of "Learning jQuery" take a different approach by building example pages up from bare html and adding and refining jQuery functionality as they go. For the most part this approach works for me. I can always look up specific jQuery methods elsewhere if I need another viewpoint or additional information.

I changed my mind and rated the book at five stars vs four. Originally I was going to ding it a star for not being as comprehensive as the website. But you can't pack it all into a finite set of pages, and that in my mind is the one weakness (minor) of the approach the authors took. The jQuery website is the go to resource for a complete listing of jQuery functions. The book is an excellent companion to the website.
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Listmania!

Create a Listmania! list

Look for similar items by category


Look for similar items by subject


Feedback


Amazon.co.uk Privacy Statement Amazon.co.uk Delivery Information Amazon.co.uk Returns & Exchanges