Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.
Pro JavaScript Techniques and over 300,000 other books are available for Amazon Kindle – Amazon’s new wireless reading device. Learn more

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
48 used & new from $26.99

Have one to sell? Sell yours here
 
   
Pro JavaScript Techniques
 
 
Start reading Pro JavaScript Techniques on your Kindle in under a minute.

Don’t have a Kindle? Get yours here.
 
  

Pro JavaScript Techniques (Paperback)

by John Resig (Author)
Key Phrases: strict mode, login information, finding elements, Internet Explorer, Dean Edwards, Rotate the Canvas (more...)
4.3 out of 5 stars See all reviews (24 customer reviews)

List Price: $44.99
Price: $36.51 & this item ships for FREE with Super Saver Shipping. Details
You Save: $8.48 (19%)
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Tuesday, July 7? Choose One-Day Shipping at checkout. Details
33 new from $26.99 15 used from $30.69
Also Available in: List Price: Our Price: Other Offers:
Kindle Edition (Kindle Book) $32.86

Frequently Bought Together

Customers buy this book with JavaScript: The Good Parts by Douglas Crockford

Pro JavaScript Techniques + JavaScript: The Good Parts
  • This item: Pro JavaScript Techniques by John Resig

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • JavaScript: The Good Parts by Douglas Crockford

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details


Customers Who Bought This Item Also Bought

Pro JavaScript Design Patterns (Recipes: a Problem-Solution Ap)

Pro JavaScript Design Patterns (Recipes: a Problem-Solution Ap)

by Ross Harmes
4.7 out of 5 stars (11)  $40.27
Pro CSS and HTML Design Patterns

Pro CSS and HTML Design Patterns

by Michael Bowers
4.6 out of 5 stars (29)  $29.69
Pro CSS Techniques

Pro CSS Techniques

by Jeff Croft
4.1 out of 5 stars (13)  $35.99
JavaScript: The Definitive Guide

JavaScript: The Definitive Guide

by David Flanagan
4.4 out of 5 stars (286)  $31.49
jQuery in Action

jQuery in Action

by Bear Bibeault
4.4 out of 5 stars (40)  $26.39
Explore similar items


Editorial Reviews

Product Description

Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesnt waste any time looking at things you already know, like basic syntax and structures.

Expert web developer and author John Resig concentrates on fundamental, vital topicswhat modern JavaScripting is (and isnt), the current state of browser support, and pitfalls to be wary of. The book is organized into four sections:

  • Modern JavaScript developmentusing JavaScript the object-oriented way, creating reusable code, plus testing and debugging
  • DOM scriptingupdating content and styles, plus events, and effect and event libraries
  • Ajaxhow Ajax works, overcoming problems, and using libraries to speed up development of Ajax applications
  • The future of JavaScriptlooking at cutting edge topics like JSON, HTML 5, and more

All concepts are backed up by real-world examples and case studies, and John provides numerous reusable functions and classes to save you time in your development. There are also up-to-date reference appendixes for the DOM, events, browser support (including IE7), and frameworksso you can look up specific details quickly and easily.



About the Author
John Resig is a programmer and entrepreneur who's been developing web applications for over eight years. Having primarily focused on back-end development for most of that time using Perl and MySQL, John changed his focus toward implementing usable web front ends. He holds a degree in computer science from Rochester Institute of Technology and has published several papers on data mining instant messaging networks. When he's not programming, he enjoys watching movies, writing in his blog, www.ejohn.org, and spending time with his girlfriend.

Product Details

  • Paperback: 384 pages
  • Publisher: Apress; 1 edition (May 4, 2009)
  • Language: English
  • ISBN-10: 1590597273
  • ISBN-13: 978-1590597279
  • Product Dimensions: 9.1 x 7 x 1 inches
  • Shipping Weight: 1.6 pounds (View shipping rates and policies)
  • Average Customer Review: 4.3 out of 5 stars See all reviews (24 customer reviews)
  • Amazon.com Sales Rank: #39,787 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #14 in  Books > Computers & Internet > Web Development > Programming > JavaScript

Inside This Book (learn more)

What Do Customers Ultimately Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(11)
(11)
(11)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

24 Reviews
5 star:
 (14)
4 star:
 (6)
3 star:
 (2)
2 star:
 (1)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
4.3 out of 5 stars (24 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
39 of 40 people found the following review helpful:
5.0 out of 5 stars A great book -- but not for all., March 19, 2007
By Brett Merkey (Palm Harbor, FL United States) - See all my reviews
(REAL NAME)   
§
"Pro JavaScript Techniques" is definitely for experienced and advanced scripters. The level of abstraction is high in this treatment of the latest trends of JavaScript. If you are looking for ready-made scripts to solve some specific problem in your site or application, you are looking for a different sort of book.

If you have ever gone to Douglas Crockford's site to learn about advanced concepts in JavaScript, and withdrew dazed and abused by his obtuse examples -- but with a conviction that there was something valuable to learn there -- this book is for you.

The author states, and I agree, that understanding Chapter 2, "Object Oriented JavaScript" is the key to the puzzle. "The phrase object-oriented JavaScript is somewhat redundant, as the JavaScript language is completely object-oriented and is impossible to use otherwise. However, a common shortcoming of most new programmers is to write their code functionally without any context or grouping."

The chapter contains a clear exposition of what the author means by "context or grouping." In fact, his concise but relevant example code to explain the distinction between privileged methods and static methods lit up all sorts of light bulbs in my head...Finally! :-)

Be aware that the author's approach has a particular bias in that it is often directed at the *programmer* coming into Web scripting. The idea is to make the JavaScripting world appear more like the programming languages already known. You learn "how to go about writing a variety of object-oriented code to suit anyone coming from another programming language."

This is a great book -- but not for all.
§
Comment Comments (2) | Permalink | Was this review helpful to you? Yes No (Report this)



 
27 of 27 people found the following review helpful:
5.0 out of 5 stars excellent for the at least moderately experienced, January 27, 2007
As a javascript dabbler, I was looking for a book aimed at someone already familiar with javascript and found this one. Having read a few apress books, I felt pretty confident that the quality of this one would be at least reasonable and I definitely wasn't let down.

The executive overview is that this is an excellent book for those who are already working in javascript and are looking to improve their game. It covers a world of techniques very well. Highly recommended.

Now, the longer review...

This is an excellent book that deftly avoids the pitfalls so many books that claim to be aimed at people familiar with the topic. So many of these types of books try to be accessible they end up giving a lot of basic information mixed in with the advanced information - ultimately becoming a text unsatisfying for people of any level. This book devotes the beginning 15% of pages going over the basics, but it covers a ton of ground by acting more as a refresher course - assuming at least basic familiarity with most of the topics. I think it really did a great job of this, starting in Chapter 1 with a broad overview of OO javascript, cross browser issues, being serious and rigorous with your development process and their particular views on how to deploy javascript unobtrusively.

The subsequent 3 chapters are the refresher course. These chapters work through a ton of topics, at times it refers you to sites on the net for further information. He starts the overview with pretty much every topic in OO development, from scope and closures to a remarkably sweet and concise description of context. He brings together all these topics and how together they form the building blocks for javascripts particular flavor of OO. Then he tackles the various ways to deal with inheritance - here he covers ways to do it yourself as well as a couple libraries that you can use. He also talks about packaging and ways to make your code play well with others. He wraps up the overview with a chapter about debugging and testing - a topic I think a bit under-discuessed in javascript and I was happy to get his views and suggestions on how to deal with these.

With those conveniently out of the way he dives right into several chapters where he talks about the DOM, events and css scripting and how they relate to his goal of creating unobtrusive scripts where no javascript intrudes on nice clean html. He covers these topics by presenting a small problem and working through the code to solve that problem. It's very easy to follow and works well. He introduces several libraries to help with the process, but is careful always to explain the fundamentals of how things are actually working under the hood. Too many books that start working with libraries gloss over what's actually happening and wind up being little more than extra documentation for the libraries, fortunately this book doesn't suffer from this problem.

He then goes into two more chapters bringing it all together with larger in depth projects, enhancing forms with validation and other features as well as a javascript image gallery.

The last major part covers Ajax - one chapter goes into nice detail and builds several helpful library functions. He also covers handling the return of these requests and the pros/cons of xml vs html vs json. And then it goes into two bigger projects enhanced blogs, autocomplete and wiki.

Finally, he talks a little about where javascripts going and provides some references for DOM, events and browsers in the appendix.

There's not much negative to say about this. It gives a great overview for those who don't know the language inside and out, it covers a huge number of topics in a very readable and instructive way and gives a very useful reference to DOM and event scripting at the end. It does suffer slightly from putting some code in that is unexplained until a future point in the book. But, it doesn't happen often.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
21 of 22 people found the following review helpful:
5.0 out of 5 stars Be a Pro JavaScripter in no time!!!, May 28, 2007
In the days of Ajax, a good understanding of JavaScript is crucial in really understanding how Ajax works. This book by John Resig (developer of JQuery) has written an intermediate - advanced book on JavaScript teaching the reader topics such as object-oriented practices, creating reusable code, DOM, events along with many useable examples. With all the fancy JavaScript libraries out now, it is good to have a book that teaches the reader how to create your own libraries or at least how many of those are create with proper object-based development.

Until Ajax came along (which brought about JS libraries), knowing how to create objects and reusable code wasn't really explained much in books. This book talks about it in the first chapter, where John shows how to create objects via Prototyping, function overloading and using the Object constructor. John also talks about closures, scope, property and method creation and namespacing. All of these topics are found in other languages (C++, Java, VB.NET), but were not really used much in JavaScript until recently. John also covers in detail inheritance (classical and prototypal) and goes through other libraries (YUI, Dojo, Prototype, etc) and how they are created. A very thorough explanation on objects and creating reusable code in JavaScript. Actually this is one of the few books that have covered these topics in such detail. Many other books just skimmed the surface with these topics that made it hard for the newbie to understand.

What current JavaScript book could be published without talking about the DOM. Every book nowadays talks about this topic since everything out on the web seems to use it in on form or another. This book goes in to great detail talking about the DOM with a complete explanation of the basics of what it is, when it can be accessed (waiting for the DOM to load), finding elements on a page, standard DOM methods and 3rd party functions that have been used for years to fill in the gaps of DOM methods that are not available. For instance: addEvent, getElementsByClassName, CSSQuery, JQuery and others. Without a solid foundation of the DOM, many of the cool things that are done on the web today could not be done.

Another important and often not talked about topic is event registration. Chapter 6 of this book goes into the various ways and element can respond to an event. From event phases, (capturing and bubbling), traditional event binding (DOM Level 1) to W3C DOM Binding. This can be a very difficult topic to understand since there are a few differences between the way IE and other browsers handle it. But John explains each difference in great detail and makes you fully aware of how to handle it with some nice examples.

John also covers creating unobtrusive scripts which doesn't assume that JavaScript will be available in the user's browser and how to handle this scenario. This also ties in to separating the three layers (Presentation, Structure and Behavior) which is also discussed. This teaches the user how to keep your inline JS event handling out of the HTML and in a separate .JS file. This makes updating your code easier and less problematic in the future.

The rest of the book focuses on using JavaScript with CSS and applying the previous techniques covered in useful examples such as form validation, creating a dynamic image gallery and some simple Ajax examples.

This is a great book if you know the basics of JavaScript and want to take your skills to the next level and especially if you're not a "true" programming and need a little more explanation. A great book!
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

3.0 out of 5 stars Could be called "How John Resig Built jQuery"
In his instruction manual "Pro JavaScript Techniques", John Resig goes through a lot of great JavaScript tips and tricks, a lot of which are used in his extremely popular... Read more
Published 3 months ago by Ryan Pfister

5.0 out of 5 stars Your Path to JavaScript Jedi Starts Here
If you are ready to move beyond inline or procedural JavaScript code, then this book should be first on your reading list. Read more
Published 4 months ago by Craig Cecil

5.0 out of 5 stars A step beyond other books
It's a really nice book, if you want to go further in JavaScript programming... for those who were sick of searching for REAL PRO techniques in JavaScript in books, like... Read more
Published 6 months ago by Diogo B. P. Pinto

4.0 out of 5 stars Doc from the Crock
Lots of direct advice from one of the JavaScript masters. I found it illuminating and easy to read. Not for beginners or casual users of JavaScript. Read more
Published 8 months ago by D. McCormick

4.0 out of 5 stars Don't waste anymore time thinking, just get this book!
The best JS book I've ever read. Perfect for back-end developers who have to also spend a lot of time on the front-end working with JS/CSS. Read more
Published 8 months ago by java web app developer

2.0 out of 5 stars If you can debug the code, you don't need the book
I agree with only one other reviewer who commented on the typos, etc. The demo code does not work until you debug it. Read more
Published 10 months ago by Martin Glynn

5.0 out of 5 stars Excellent work!
John Resig never fails to amaze and his latest book is no exception. I highly recommend it to everyone interested in javascript; it is a must have.
Published 12 months ago by Chris Zakharoff

4.0 out of 5 stars Finally, a JavaScript resource aimed at me
Pro JavaScript Techniques by John Resig is probably the best resource on the language I've encountered to date. Read more
Published 14 months ago by Kevin D A Major

1.0 out of 5 stars Once good, now outdated
This was an excellent book two years ago, (and still is), but it's now outdated. I bought it based on its nearly five-star rating; I wish I'd done my homework, since I... Read more
Published 15 months ago by Amy Woodward

3.0 out of 5 stars breadth but no Depth
Book has lots of examples. Many involve using libraries such as Prototype and JQuery. But, if you are not already familiar with using those libraries, the examples will not make... Read more
Published 16 months ago by Chuck

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

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

   


Product Information from the Amapedia Community

Beta (What's this?)


So You'd Like to...


Look for Similar Items by Category


Smooth Operator

Shop for garage door openers

Find garage door products (opener kits, remotes, mini-key-chain controls, and wireless-key entry systems) in the Hardware Store. Opening the garage door shouldn’t be a chore.

Shop all garage door hardware

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Summer Reading for Kids & Teens

Summer Reading for Kids and Teens
Discover everything from beach reads and board books to teen romance and action-adventure series in Summer Reading for Kids & Teens. And, check off the kids' required reading lists in our Summer School Reading Store.
 

This Jig Saw Is No Puzzle

Shop for jig saws
A versatile jig saw is the ideal tool for cutting a wide range of materials cleanly and accurately.

Shop for jig saws

 

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Glenn Beck's Common Sense
Paranoia
Paranoia by Joseph Finder
Glenn Beck's Common Sense
Darkfever
Darkfever by Karen Marie Moning

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates