Pro JavaScript Techniques and over one million other books are available for Amazon Kindle. Learn more

Buy New

or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Buy Used
Used - Very Good See details
$13.99 & eligible for FREE Super Saver Shipping on orders over $25. Details

or
Sign in to turn on 1-Click ordering.
 
   
Sell Back Your Copy
For a $9.97 Gift Card
Trade in
More Buying Choices
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 your Kindle here, or download a FREE Kindle Reading App.

Pro JavaScript Techniques [Paperback]

John Resig (Author)
4.2 out of 5 stars  See all reviews (29 customer reviews)

List Price: $44.99
Price: $27.80 & this item ships for FREE with Super Saver Shipping. Details
You Save: $17.19 (38%)
  Special Offers Available
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.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Monday, January 30? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for Students. Learn more

Formats

Amazon Price New from Used from
Kindle Edition $25.02  
Paperback $27.80  
Sell Back Your Copy for $9.97
Whether you buy it used on Amazon for $9.75 or somewhere else, you can sell it back through our Book Trade-In Program at the current price of $9.97.

Book Description

1590597273 978-1590597279 December 13, 2006 1

JavaScript usage on the Web has changed in recent times, due to increased JavaScript support in web browsers, and new techniques coming to light. JavaScript is also now being looked on as a proper programming language, whereas in it's inception it was regarded as little more than a scripting toy.

This book addresses all the points above in detail - modern browser support (including information on Internet Explorer 7), Object-Oriented JavaScript, testing and debugging, Unobtrusive JavaScript techniques using DOM Scripting, Ajax, creating and using blocks of reusable code, and looking towards the future of JavaScript.

It backs up all the concepts with real world examples and full-blown case studies, and also includes several reference sections to allow developers to look up details quickly and easily.


Special Offers and Product Promotions

  • Buy $50 in qualifying physical textbooks, get $5 in Amazon MP3 Credit. Here's how (restrictions apply)

Frequently Bought Together

Pro JavaScript Techniques + JavaScript: The Good Parts + JavaScript Patterns
Price For All Three: $65.42

Show availability and shipping details

Buy the selected items together
  • In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • JavaScript: The Good Parts $17.83

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

  • JavaScript Patterns $19.79

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



Editorial Reviews

About the Author

John Resig is a programmer and entrepreneur who hass been developing web applications for over 8 years. Having primarily focused on backend development for most of that time using Perl and MySQL, John changed his focus towards 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 (December 13, 2006)
  • 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.2 out of 5 stars  See all reviews (29 customer reviews)
  • Amazon Best Sellers Rank: #74,229 in Books (See Top 100 in Books)

More About the Author

John Resig is the Dean of Open Source and head of JavaScript development at Khan Academy and the author of the book Pro JavaScript Techniques. He's also the creator and lead developer of the jQuery JavaScript library.

Currently, John is located in Boston, MA. He's hard at work on his second book, Secrets of the JavaScript Ninja.

 

Customer Reviews

29 Reviews
5 star:
 (15)
4 star:
 (9)
3 star:
 (3)
2 star:
 (1)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
4.2 out of 5 stars (29 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

65 of 67 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)   
This review is from: Pro JavaScript Techniques (Paperback)
§
"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.
§
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


33 of 33 people found the following review helpful:
5.0 out of 5 stars excellent for the at least moderately experienced, January 27, 2007
This review is from: Pro JavaScript Techniques (Paperback)
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.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


24 of 25 people found the following review helpful:
5.0 out of 5 stars Be a Pro JavaScripter in no time!!!, May 28, 2007
This review is from: Pro JavaScript Techniques (Paperback)
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!
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

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











Only search this product's reviews



Inside This Book (learn more)
Key Phrases - Statistically Improbable Phrases (SIPs): (learn more)
strict mode, login information, finding elements, malesuada cursus, autocomplete search, accumsan urna, bibendum tellus, elementum eget, hover labels, prototypal inheritance, arcu ante, dolor ipsum, aliquam sit amet, unsupported browsers, return elem, nec pede, attaching event handlers, var items, results popup, image gallery, privileged methods, serialized data, modern browsers, validation error messages, dolor sit amet
Key Phrases - Capitalized Phrases (CAPs): (learn more)
Internet Explorer, Dean Edwards, Rotate the Canvas, Submit Form Figure, Checking Whether, Google Suggest, Random Cat Pictures, Douglas Crockford, Handling Response Data, Google Maps, Archive Network, Instant Domain Search, Cross-Browser Means of Establishing, Error Console
New!
Concordance | Text Stats
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:

What Other Items Do Customers 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.
 
(14)
(13)
(12)

Your tags: Add your first tag
 

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
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums





Look for Similar Items by Category


Look for Similar Items by Subject