Book Review: Learning jQuery

Packt sent me a copy of “Learning jQuery” by Jonathan Chaffer and Karl Swedberg. jQuery is a javascript library that I have been using on and off and was delighted to be given a chance to review this book and have a chance to read through and learn about jQuery in a less urgent manner than I had initially.

With a tag-line of “Better Interaction Design and Web Development with Simple JavaScript Techniques” and some 376 pages long (split into 10 chapters, along with three appendices) the book excels at fulfilling that promise.

From the chapter on Getting Started through selectors (css, dom, xpath), Chaffer and Swedberg examine and show how to use jQuery for animations, ajax and manipulating tables to the all important client-side form validation with disarmingly concise eloquence and skill. They also detail how to use and develop jQuery Plug-ins.

Any of the required server-side code examples, for the AJAX chapter, are in PHP but that doesn’t make the book any less relevant or more specialised towards PHP – it should be trivial to rework them for any language.

The authors use an example based approach and this works very well as they continue to progressively enhance each example with additional features and functionality – you can really see their shopping cart and image carousel examples really build up into very well formed examples of what can be done with jQuery.

If you haven’t already been turned on to jQuery by it’s excellent on-line documentation and fluent API (method chaining), this is the book that will do it.

There is one caveat though: “Learning jQuery” was written for jQuery v1.1 and published in June 2007; version 1.2 of jQuery was released four months later with some substantial changes to the API.
This doesn’t matter all that much to be honest; obviously this book doesn’t cover what’s available in v1.2 but until there’s a second edition of this book (and wouldn’t that be great?) you won’t find a better book on the subject.

Tags: , ,

4 Responses to “Book Review: Learning jQuery”

  1. Thomas Allen says:

    I have Learning jQuery and I use it almost daily. I’m pretty sure it was written for 1.2 or 1.2.1, because I wouldn’t have bought it if it were that out of date, and every example I’ve tried works perfectly. The book’s at my office, so I can’t double check.

  2. kenguest says:

    Thomas, I can save you the bother. The website for the book, http://book.learningjquery.com/ , explicitly details:

    Since these books were published, there have been substantial changes to the jQuery API—especially for jQuery versions 1.2 and greater.

    The books cover jQuery versions 1.1 through 1.1.3.1
    The good news is that many of the changes are welcome additions to the API. Some functions have been removed, however, including all XPath selectors and a few methods such as .lt() and .gt(). An XPath selector plugin is available.

    So that’s it from an authoritative source!

  3. [...] – bookmarked by 2 members originally found by MrMR on 2008-09-23 Book Review: Learning jQuery http://blogs.linux.ie/kenguest/2008/07/05/book-review-learning-jquery/ – bookmarked by 4 members [...]

  4. [...] as published by Packt. I’ve now had a chance to read it objectively and compare it against the original “Learning JQuery” which Packt also sent me to review about a year ago. That earlier edition covered a much less [...]

Leave a Reply