rank trend

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

by Karl Swedberg, and Jonathan Chaffer
Released 2007-06-29
Read articles about Javascript
Buy it from AmazonNew for $35.99

24 Reviews

Sort by: Most Helpful ▲ Date Rating

5 stars Now THIS is documentation...

2007-08-02     29 of 29 found this review helpful

§
One of the valid criticisms of the profusion of JavaScript frameworks is lack of documentation. This valuable book is the best possible boost to jQuery, one of the most popular frameworks in the pack. This documentation provides a gentle introduction to jQuery concepts and at the same time gives you the tools and examples to do some wickedly cool stuff.

Although jQuery is advanced JavaScript, you don't have to be an advanced scripter to use it or to follow the flow of this book. In fact, the book makes very clear that, aside from the particular advantages of this framework, jQuery will be especially welcomed by Web workers who are familiar with the value and syntax of Cascading Style Sheets (CSS). Someone who knows CSS well yet is weak on JavaScript will have no trouble at all slipping in advanced functionality to Web pages or applications with the help of this guide.

I have reviewed many books dealing with Web tech, CSS, and JavaScript. Even with the best of these books, I have often complained of lack of attention to scripting the display and behavior of data tables. This book totally eclipses every other book I have studied in this regard. As a designer of Web reporting tool interfaces, with a heavy use of data display, this book would get a 5-star rating for that alone.

The fine chapter on scripting data tables is not alone of course. The book handily deals with form manipulation and all sorts of approaches to dynamically modifying Web pages.

The book comes with not one, but two supporting Web pages where you can see the code in action and download it for play and profit.

I think getting this book is a no-brainer if you want to pick up on the latest practical trends in Web development -- as well as save yourself a lot of work and fuss.
§

5 stars Groovy jQuery Introduction Book

2007-08-06     16 of 16 found this review helpful

I'm a huge fan and avid user of jQuery and have been extremely impressed by the documentation provided on the jQuery website. The one thing that documentation lacks, however, is really contextual examples that drive home some bare essentials of JavaScripting with the jQuery library. Learning jQuery - a book by Jonathan Chaffer and Karl Swedberg - is an excellent introductory book for those that are thinking about using (or struggling with) jQuery.

jQuery, while a fairly high level JavaScript library is a beautiful thing but can be very daunting to a developer that is new to JavaScripting or is coming from a dissimilar library, being thrust full bore into a `new' way of doing old tricks. (Which jQuery is great at by the way...it makes the new ways super sexy, sleek, and easy). The authors do a great job of explaining what jQuery is and why it is such a powerful tool.

Throughout the book are examples on traversing and manipulating the DOM, event handling, leveraging jQuery's JS effect capabilities, AJAX, etc; many of which are built off of previously detailed examples, allowing the reader to easily grasp what is going on and why a chunk of code was used.

While I feel this book is primarily an excellent introductory source for diving into the world of JavaScript development with jQuery, the fairly seasoned jQuery user (like myself) may find a trick or two that they hadn't quite thought of... As I read through, I found a few choice bits that allowed me to make my own code more efficient!

My only real complaint with the book is the index at the back. There are a number of jQuery functions that are discussed within the chapters yet weren't referenced in the index. A small nitpick, I know, but I'm a sucker for a good index :)

So. Overall, I think the book is a good thing to keep on the bookshelf, whether a you are a jQuery n00b or not. There's always a co-worker/friend/programming buddy that will want to learn jQuery and what better way to get them rolling on there own than a link to the jQuery docs and a sweet book?

5 stars Even beginners will like this book

2007-07-28     13 of 13 found this review helpful

Having authored about 25 computer books on programming and published about 200 ([...]), I found Learning jQuery a real treasure. I am a real noobie in jQuery and the book assumes that yoiu are proficient in both css and javascript. I discovered jQuery almost by accident, while I was struggling to tame some of the new features in Dreamweaver (effects). I was blown away by all the power it offered and the enormous number of plugins that allow you to do some really great things on your web page.

The authors teach jQuery in a really wonderful graduate fashion which builds on your previous knowledge. They amplify examples to help you see the way it works, and they reveal the hard way to do something then show how jQuery can make it so much easier.

The authors show an immense understanding of the person coming to jQuery.

Mitch Waite, former publisher of Waite Group Press

PS I would have loved some more illustrations, but I highly recommend the book. I am hoping someone like O'Rielly comes out with a Head First beginners guide and Peachpit does one of there great Visual QuickStart Guides.

5 stars Keeping it FUN

2007-07-24     7 of 7 found this review helpful

The more people learn about jQuery the more they use the word FUN! This is a great boot camp book on doing jQuery. The AJAX examples are in PHP and I would have liked some in ColdFusion, but that didn't cause a single problem in understanding the teaching in the book! If you are doing internet and need to start making your pages "dynamic" with javascript and the DOM this is a right way to do it. Get the book and you may never know what pain you miss. If you have been doing prototype or some other solution, check out the book... you will love where jQuery is headed.

4 stars Not bad

2007-12-12     6 of 6 found this review helpful

A decent exposition. Good intro to JQuery. Index is very poor. Basic functions (like ".ready") are not listed. I shouldn't have to sequentially search the book to find something I read a few days before. When I instead find myself using Google it's clear there is a problem.

3 stars Well written, but needs a MUCH better index.

2008-09-07     5 of 6 found this review helpful

This is a great book, to a point. It explains the concepts behind JQuery and gives some good, easy-to-follow examples. It's a good tutorial and introduction to using JQuery for AJAX, enhancing the UI, manipulating data, etc.. So why did I give this 3 stars?

Because in the end, what matters most to me is if I can USE the book on an ongoing basis. I'm not going to be able to, because the index for this book is WAY too sparse. It's missing many, many topics. For example, something as simple as the click() and clone() functions aren't in there, and neither is noConflict (which allows JQuery to play nicely with other libraries. And that's just the "C's".

I'm not asking for a complete reference - I understand that Packt does have a JQuery reference. But it would be nice to be able to find things I just read about 15 minutes ago! The poor index means I'm going to end up barely using this book at all.

5 stars The most useful examples that I have ever seen.

2007-10-28     5 of 5 found this review helpful

While there are a lot of Javascript libraries out there, there's something special about jQuery. Right when you start to use it, it just feels right. Of course, trying to sell a manager or a co-worker on, "it just feels right", rarely works; it's important to be able to list out the reasons why something is good. This book does that for you - the very first chapter starts out by taking what you feel in your gut and wrapping up in 12 powerful bullet points. Not only does this set the expectations for the rest of the book (which are met with flying colors), it gives those of us who cannot easily codify our thoughts a pre-packaged strategy for introducing jQuery into the work place.

Having read the jQuery Reference Guide prior to this book, it is clear that Learning jQuery does not cover the entire breath of the jQuery library. It does cover a good deal of the selectors, DOM traversal and modification methods, AJAX functionality, event binding, and plug-in architecture, but to be sure, there are things that are either glossed over or left out. This should, however, not be viewed in a negative light. Instead of being incomplete, Learning jQuery takes the most important and powerful aspects of jQuery and covers them in-depth.

This book is all about the in-depth, iterative example! After every chapter, I found myself reflecting on how thorough and well done the examples were. Each one starts out with a simple piece of code (probably the way you or I would accomplish some task). Then, it adds something. Then, it factors something out. Then, it encapsulates something. Then, it adds some more functionality. At each step, I kept thinking, "Brilliant! I can't believe I never thought of doing it that way." At the end, not only do you understand the jQuery concepts in a way that the reference guide could never communicate, you've completely changed the way you want to write your own code.

I think it is very important to note that all of the code examples are done in a "progressive enhancement" way. By this, I mean that all of the examples are designed to function at some level, even for web users who have disabled Javascript in their browsers. It is only through Javascript that the advanced features are added to the page once the document object model has loaded. By "upgrading" the page functionality in this way, not only do you keep your markup very clean, you ensure that the page works for everybody. I've never even thought about doing things this way; I'm telling you, this book is inspiring.

While there is too much great content to cover on a piece by piece basis, there were many aspects that I thought were very exciting to learn about. Of particular interest is the use of CSS class values as a means for hooking into the DOM. Traditionally, I have only used CSS to format elements within the page. Many of the examples in this book use arbitrary CSS classes, not for formatting, but for targeting parts of the DOM using jQuery. For example, a column header might be given the class, "sort-asc", not because it has any formatting associated with it, but rather because it allows the sort direction of the column to be defined in a way that can be easily accessed and located via jQuery selectors. This concept really blew my mind! I had never thought about using classes for anything but formatting, but I can see how powerful this technique can be.

One of the other things that I wanted to point out is that this book describes writing jQuery code that takes place over time. That is, it explains how to write jQuery code that does not fire immediately, but rather executes several times over the course of time. I have hardly seen any documentation or examples of jQuery code that uses the setTimeout() or setIterval() methods, but this book has an example that uses these methods and explains their application quite well.

In addition to the jQuery information, just by fact of how in-depth the examples are, this book ends up teaching you more about Javascript in general. I like to think of myself as having a fairly good understanding of Javascript, and even I came across several useful functions that I had never heard of before, but am already excited about using in future projects.

This book also has the best explanation of Javascript Closures that I have ever read. In fact, they have a whole Appendix (Appendix C) dedicated to the concept of Closures. I don't know if it's just because I am at a point where I can start to understand what it is that they are, or if this book just does an excellent job of describing what they are, how they work, and how they relate to jQuery, but something about their explanation just took the concept and drove it home. So much of the power of this library is derived from the nature of Closures, so, while the understanding of Closures is not necessarily essential for the basic usage of jQuery, it is certainly essential to understand when creating complex, object-like functionality. I almost want to say, if for no other reason, you should get this book for Appendix C alone; that's the kind of eureka moment that I had when reading it.

Overall, this is a great book, and a must-read for anyone who is serious about learning how to write powerful and concise jQuery code. While the reference guide is good, it cannot hold a candle to this book in terms of teaching; in my experience, it is only through great, in-depth and iterative examples that learning can take place and Learning jQuery provides these type of examples almost in excess.

5 stars 0-60 with jQuery

2007-12-25     3 of 3 found this review helpful

Like many of the other reviewers have stated, this is a great book. It addresses a fundamental shortcoming in Javascript documentation but more importantly the publishing of jQuery books solidifies jQuery itself as a top-shelf Javascript library.

I found the Learning jQuery title was easily usable like an expanded reference guide by jumping from chapter to chapter picking up the necessary bits that I needed as I worked through adding jQuery into my existing application. If I needed straight dirt, I went to the reference guide to look up the API and its parameters and if I needed some working examples I dug into the Learning jQuery for all the details.

The authors did a fine job of writing examples (not too simple and not too esoteric or advanced). While I expected the book would make me a more powerful jQuery user, I didn't expect that it would also make me a stronger Javascript programmer. My application is looking and working a lot better as a result.

I'd recommend these titles to anyone who is either:

A) Looking for a Javascript library to standardize on or use heavily for their projects. jQuery has great community support and authors are supporting it also.

B) Existing jQuery "dabblers" who want to master the library as well as become better programmers (the information provided on Javascript closures alone is great!)

Kudos to the authors - well done!

5 stars jQuery from Server Side Programmer

2007-11-21     3 of 3 found this review helpful

A framework with good documentation! My background is in PHP and MySQL. This book is an excellent tool for quickly understanding what jQuery offers as a framework. I started reading the first few chapters, then jumped around to sections that focused on our development needs.

Sometimes books offer poor examples, or even buggy code samples. I didn't do all the examples in the book, but the ones I did do were well documented and made sense. "Learning jQuery" helped me immediately start implementing jQuery into our projects, even though my JavaScript is a bit weak. I still use it as a reference book.

I would say that the section on AJAX could be a bit stronger. For someone who is not familiar with AJAX, this might be a little vague.

All in all, thumbs up!

4 stars Well worth your time

2007-10-15     3 of 3 found this review helpful

As a rails developer most of my experience with javascript libraries has been with prototype and scriptaculous, but I've never been quite happy with them. The helper methods built into ActionView make simple tasks a breeze, and I've played with the UJS plugin to improve the separation of content and behaviour, but even then the weight of the libraries and the comparable simplicty of tasks like iteration offered by jQuery has always made the grass over there look quite a bit greener.

So when Karl told me that he and Jonathan Chaffer were working on a book about jQuery and offered to send me a copy that seemed like the perfect opportunity to begin making the switch. (that comment should be taken as a disclaimer, by the way.) In the end the timing was fortuitous as I've ended up working on a couple of drupal projects (jQuery is included with drupal from version 5 onwards) and having to integrate some jQuery code into a rails project, so I've needed to take the lessons learned from the book and quickly put them into practice.

The book takes a gradual pace, introducing the library, and how it handles selectors, events and effects, before moving into DOM manipulation, AJAX and handling forms. Standardistas will be pleased that there is a strong emphasis on progressive enhancement, always starting with pages that achieve their basic intent and then using jQuery to improve the user experience. The authors place considerable emphasis on the importance of providing all users with a solid basic experience and show how jQuery makes it very easy to do so.

More experienced javascript developers may find the pace of the book a little slow (and might prefer to look out for the companion reference volume). The core audience is likely to be those who may have dabbled with the odd snippet, or perhaps used tools that generated javascript for them, but want a step-by-step tutorial that shows how to use jQuery to do things cleanly while building general understanding. Nevertheless, the coverage of more advanced topics like closures is solid and a good reminder even for the more experienced developer.

There were a couple of areas that could have done with a little more exposition, such as the fairly cursory coverage of the difference between GET and POST in HTTP requests (being a purist, I was really looking for mention of PUT and DELETE too), and the fact that without more work one of the shopping cart examples could leave the user thinking their updates had been saved when there was no mechanism to actually make the updates on the server-side. That said, hopefully by that point in the book most readers will be alert to such things and know that the examples are not necessarily production code.

If you're looking to consolidate your javascript skills and like the look of jQuery, or, like me, you find that sometimes sitting down and reading a book is the best way to familiarise yourself with something, Learning jQuery is well worth your time and money. You can find it at packt, amazon US, amazon UK and all sorts of other places.

5 stars Use JavaScript the easy way with jQuery

2008-07-08     2 of 2 found this review helpful

I've used JavaScript for 9 years and have hated the way it needs to be developed differently for different browsers. And there are the little gotchas that take way too long to run down in forums. Enter jQuery.

The jQuery JavaScript library takes the pain out of using JavaScript. It handles the browsers and leaves us free to simply add functionality to websites in a logical and consistent way. Learning jQuery teaches jQuery in a best practices manner without preaching and makes adding interactivity to sites reasonable. I don't have to throw in the towel on JavaScript and resort to page the reloads that a server side solution would demand.

I can't imagine a better introduction to jQuery. Learning jQuery is well thought out and paced. Concepts are presented in increasing complexity with plenty of excellent examples. Working through this book gave me a solid foundation in jQuery and the confidence to experiment with my own needs. Few programming books are so well written. The example code is high quality, too with few typos or errors.

5 stars Definitive Yet Approachable

2007-08-05     2 of 2 found this review helpful

I had been looking forward to this book ever since hearing it was in the writing process. Learning jQuery was co-written by Jonathan Chaffer and Karl Swedberg. Jonathan is a well known code contributor to the Drupal CMS project. Karl is best known for the blog which bears the same name as this book - learningjquery.com. Initially a single book project, it became so comprehensive that the publishers decided to do a second reference book.

Karl was an English teacher in a previous life, and keeps a semi-regular blog called English Rules. I mention that simply to say that his literary wit shines through in this book. For a code related book, it is quite entertaining. From the readability of his writing, to the quotations he uses in code examples, it all flows together very nicely. The code examples are top-notch, which is surely a reflection of the authors' proficiency, Jonathan being a CTO at his day job.

The first half of the book is done in tutorial style, explaining how the $(document).ready() function works, adding event handlers to various elements, Ajax, JSON, XML, and creating animations. The second part contains several examples of versatile scripts: table data manipulation, enhancing functional forms, rotating image shufflers, using and creating plugins.

Appendix A lists many helpful blogs and sites on HTML, CSS and XPath resources. It also gives a tip of the hat to server-side frameworks which have adopted jQuery as their library of choice, including Drupal, Textpattern and WordPress. Incidentally, other popular sites like Digg also make use of it.

Appendix B lists helpful tools for Firefox, Internet Explorer and Safari. As a JavaScript developer, you should probably be developing in Firefox anyway, in which case be sure to get Firebug and the Web Developer extension. Appendix C explains some more advanced JS concepts such as variable scoping, nesting functions, closers, and memory leak precautions.

This book is a great resource for those who use jQuery. It has already got me thinking of how to build an accessible JSON powered photo gallery with jQuery and Textpattern, but that will an article unto itself (once I get around to it). I am already anticipating the next book, which promises to take more of an encyclopedia approach. Needless to say, if you're looking to get into jQuery, then Learning jQuery is a great place to start!

4 stars Great book

2008-09-20     1 of 1 found this review helpful

This book is great for people that know css well, it makes javascript programming, so much better. If you understand how css works, attaching events, actions, animations is simple. What used to take 30 lines of Dom scripting to do can be done in 2. this book shows you how.

5 stars The second and last javascript book you will ever need

2008-04-08     1 of 1 found this review helpful

I call this the second javascript book that you will ever need because you will first need some background and understanding in javascript such as from: Simply JavaScript. However, once you begin working with Javascript you'll find yourself wishing for an easier way to accomplish numerous tedious tasks. The solution is jQuery an open source javascript library that is supported by a sharp team of developers. Jquery uses an OOPS approach to many common tasks and provides a framework to accomplish in 1 or 2 lines of code what would take dozens using javascript alone.

Although Jquery is pretty straightforward the online forums and documentation aren't always clear and directions for someone starting out in Jquery aren't the best. That is why I bought this book and it has been an incredible help to me by giving me a structured, ordered and organized explanation of what Jquery can do. You'll find yourself savings plenty of time with it and expand your javascript capabilities exponentially.

5 stars Must have a book on Jquery

2008-01-27     1 of 1 found this review helpful

Learning jQuery: Better Interaction Design and Web Development with Simple JavaScript Techniques is a wonderful introduction to JQuery framework. The book offers many informative code samples and extremely helpful tutorials about how to make JQuery work for you and how to deal with common issues as well as not so common issues such as; acquiring information with the use of AJAX and manipulating tubular data. From the first page it is easy to see that this book is unlike any other.

This book will aid in taking away some of that fretfully complicated mess and help the reader get a sound start with JavaScript code, serving to reveal techniques that will make the reader's code much richer as well as much more efficient.

Unlike many in of it's like this book is designed more for the jQuery beginner. All that the reader need be equipped with is a general knowledge of HTML, CSS, and a firm understanding of the syntax of JavaScript, absolutely no jQuery or framework experience is needed to understand what is being expressed in the book, or to benefit from the information that is brought to light within its pages. That said I must also stress that the book can still be immensely enlightening to those with a great deal more experience with jQuery, it can teach is old pros new and more efficient techniques.

The information provided in this particular book is concise, clear, and essentially easy to understand. Important information is highlighted to ensure that it grabs the reader's attention and the same strategy is used with helpful tips. The code sample throughout the chapters are formatted well and broken down for easier reading, there are also addition sections of code bolstered. Perhaps one of the most useful as well as unique aspects of learning jQuery is the live examples provided on web sites.

I have found that these examples give the reader a better understanding for what the codes really do. The example alone are worth the books weight in gold, they are very high quality and can be applied to various real situations. The examples are also accompanied with screenshots that enrich the information.

4 stars JQuery Is The Best

2008-01-01     1 of 4 found this review helpful

I love JQuery. This book is a good reference and will give you insight. I think they could have done a better job in picking the examples but what they provide is solid.

There are some excellent tutorials linked on the JQuery home site that give a better intro than the book, but having read those first the book brings some more distintions and is worthwhile.

5 stars Excellent primer

2007-10-26     1 of 1 found this review helpful

As a Coldfusion programmer who knows next to nothing about javascript, I've been intimidated by most of the js frameworks I've looked at. This is the exception. jQuery itself is exceptionally easy to implement, and this guide was very helpful, well written and with excellent examples. Be aware that there are some changes in the most recent versions of jQuery which change a little of the syntax in the book, but it was easy enough to work around.

Well worth it.

4 stars Recommend as a buy as an introduction to jQuery

2008-09-16     0 of 0 found this review helpful

Recommend as a buy as an introduction to jQuery, especially individuals intending learn how to build new or repurpose user-interactive pages and sites with Drupal versions 5 or 6.

I received my copy directly from the publisher as I wanted to one, do a little research into the relationship between Drupal and jQuery, which has now been included with Drupal since version 5, and two to learn a bit more about interactive site design to be able to design my own Drupal 6 modules and/or templates sometime in the near future.

I found the book easy to learn from and have already started a development instance that now includes some of the functionality from the book (a picture library for my 3D art), but in combination with other resources; jQuery in Action and jquery.com tutorials. I found it fell a bit short on some of the details I required, but then I was never intending to build the actual examples found in the book for my current production site, which is a Drupal based CMS and not an eCommerce site.

I found Chapter 2 quite useful, covering the basics and relationships between Cascading Style Sheets (CSS), XPath selectors and jQuery DOM traversal as I see this as something I will be using in either a Drupal module or modified template. As I recall these topics and areas are also mentioned on one of the Drupal pages that one really needs to learn to understand, use and develop with Drupal. The section on jQuery and AJAX was also informative, at least for a beginner like myself.

The idea of writing less JavaScript code by using a library greatly appeals to me as writing or learning lots of code has never been my goal, focus or strength, the desired and resulting user functionality is and always will be. jQuery seems to satisfy this personal need and this book helped me to quickly learn and get up to speed on it. I think more experienced site developers and JavaScript masters will find it a bit short on information, and the index left a lot to be desired (only seven pages total?) as I found myself having to go to the jQuery web site for more on what I think is basic information; Chapter 3 Events, .bind() .click(), .toggle(), .hover().

Appendix A-Online Resources, and B-Development Tools both provide useful information for beginners, most I had already discovered before receiving the book, something other beginners could do as well.

5 stars Great tutorial and reference!

2008-09-03     0 of 0 found this review helpful

This isn't just a great tutorial on jQuery, it's also a terrific bookshelf reference. I find myself grabbing it off the shelf once or twice a day to jog my memory or to find a concise example of what I'm trying to do. The examples are clear and complete and don't leave you with any missing pieces. Definitely essential reading if you're taking on development with jQuery.

4 stars Wonderful book at connecting the dots.

2008-08-11     0 of 0 found this review helpful

OK... we have all heard jQuery is the in library from someone somewhere. Yet, it does so much and it does it differently. How do we shift gears and get into the library. This book is well thought out and covers the basics and beyond in a very friendly fashion. I want more details than can be contained in a book of this size, lol. We all want the books to cost less and contain more. But one of the key ways I rate books is how well did the concepts of the book sink into my brain on the first read, and how often do I take the book off the shelf for 'instant refreshers'. This book is top quality on both those areas.
(FYI... by way of reference I am the author of ColdFusion 8 Developer Tutorial )

5 stars Fantastic.

2008-04-14     0 of 2 found this review helpful

This book is great. It teaches jQuery very effectively and in a manner that all people can understand. I highly recommend it to anyone needing/wanting to learn jQuery.

4 stars Great intro book

2008-03-11     0 of 4 found this review helpful

very complete overview of the topic with well layed out examples. The reference book is a better long term value.

5 stars Wonderful Learning Material

2007-12-22     0 of 0 found this review helpful

This book is a superb stepping stone into the jQuery world. If you are new or just started playing with jQuery and cannot wait to learn more, I highly recommend this book.

I am big on learning by example and this book does not fall short on them. It gradually eases the reader through examples bringing them up to speed quickly on concepts, but it is also easy to skip into any section and plunge right into it without having to read pages of setup on the scenario. This book is covered with code examples, encouraging a "get your hands dirty" philosophy. The examples are also practical real world situations like "Loading Data on Demand" (AJAX) and "Pagination".

The real gold is that these examples answer many of the questions I see on the jQuery discussion group all the time. Each example has the code so you can get the run-down quickly, and then detailed explanations of what's going which is useful for explaining those oddities that always occur in programming.

5 stars The title of the book is correct

2007-11-04     0 of 1 found this review helpful

Pretty good book. It introduces the concepts of jQuery and gives examples. I have not read through the whole thing, but I did get enough out of it to use jQuery. I think you may need to the jQuery reference book to accompany it for any heavy development.

Buy it from AmazonNew for $35.99