Vous voulez voir cette page en français ? Cliquez ici.


or
Sign in to turn on 1-Click ordering.
More Buying Choices
Have one to sell? Sell yours here
Pro JavaScript Techniques
 
 

Pro JavaScript Techniques [Paperback]

John Resig
3.0 out of 5 stars  See all reviews (2 customer reviews)
List Price: CDN$ 49.50
Price: CDN$ 29.78 & this item ships for FREE with Super Saver Shipping. Details
You Save: CDN$ 19.72 (40%)
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.ca. Gift-wrap available.
Only 3 left in stock--order soon (more on the way).
Want it delivered Tuesday, May 29? Choose One-Day Shipping at checkout.

Frequently Bought Together

Pro JavaScript Techniques + jQuery in Action, Second Edition + JavaScript: The Good Parts
Price For All Three: CDN$ 78.36

Show availability and shipping details

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

  • jQuery in Action, Second Edition CDN$ 29.78

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

  • JavaScript: The Good Parts CDN$ 18.80

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


Customers Who Viewed This Item Also Viewed


Product Details


Product Description

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.

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

Tag this product

 (What's this?)
Think of a tag as a keyword or label you consider is strongly related to this product.
Tags will help all customers organize and find favorite items.
Your tags: Add your first tag
 

What Other Items Do Customers Buy After Viewing This Item?


 

Customer Reviews

2 Reviews
5 star:    (0)
4 star:
 (1)
3 star:    (0)
2 star:
 (1)
1 star:    (0)
 
 
 
 
 
Average Customer Review
3.0 out of 5 stars (2 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most helpful customer reviews

4.0 out of 5 stars Solid introduction to writing "good" JavaScript, May 29 2010
By 
M. Froh (Toronto, ON Canada) - See all my reviews
(REAL NAME)   
This review is from: Pro JavaScript Techniques (Paperback)
This book does a good job of explaining "why" things work the way they do in JavaScript.

I really like that it covers (without dwelling upon) various cases where you may have to be careful of Internet Explorer-specific hacks, and gives advice on abstracting them away, so you can focus on problem-solving rather than working around browser incompatibilities. (This is not surprising, given that John Ressig is behind jQuery, which has saved many JavaScript developers from worrying about browser compatibility.)

I wouldn't recommend this book for someone with no prior programming experience. It's assumed through most of it that you can read and understand the (plentiful) code samples without requiring too much explanation. That said, for someone with some experience in JavaScript (or other programming languages), the examples are quite clear and helpful. I feel that I'm writing much better JavaScript than I was before reading this book.

My main gripe with the book involves some grating English errors. Throughout the book, Ressig says "a couple x", rather than "a couple of x". Furthermore, he repeatedly says "the importance of x cannot be understated".
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


0 of 1 people found the following review helpful
2.0 out of 5 stars this is a book for novice, Oct 16 2011
By 
Tieliu Du (Canada) - See all my reviews
(REAL NAME)   
This review is from: Pro JavaScript Techniques (Paperback)
I am reading this book and about to finish it in 2 days.
It is too simple for me. I think it is for developer who has no javascript at all.
And it is old. In Javascript world, ExtJS,dojo,GWT ,there a lot popular frameworks.
They distributed a lot into js world to make it more OO. But this book hardly mention them.
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 Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 4.3 out of 5 stars (30 customer reviews)

65 of 67 people found the following review helpful
5.0 out of 5 stars A great book -- but not for all., Mar 19 2007
By Brett Merkey - Published on Amazon.com
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.

§

33 of 33 people found the following review helpful
5.0 out of 5 stars excellent for the at least moderately experienced, Jan 27 2007
By Felix Sheng - Published on Amazon.com
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.

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
By Frank Stepanski - Published on Amazon.com
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!
 Go to Amazon.com to see all 30 reviews  4.3 out of 5 stars 
 
 
Only search this product's reviews



Listmania!

Create a Listmania! list

Look for similar items by category


Look for similar items by subject


Feedback


Amazon.ca Privacy Statement Amazon.ca Shipping Information Amazon.ca Returns & Exchanges