Prototype and script.aculo.us: You Never Knew JavaScript Could Do This!

  Author:    Christophe Porteneuve
  ISBN:    1934356018
  Sales Rank:    128241
  Published:    2007-10-15
  Publisher:    Pragmatic Bookshelf
  # Pages:    330
  Binding:    Paperback
  Avg. Rating:    4.0 based on 12 reviews
  Used Offers:    11 from $19.54
  Amazon Price:    $23.07
  (Data above last updated:  2008-11-18 08:35:42 EST)
  
  
Sort customer reviews by:
  
Show All Reviews on Page      Hide All Reviews on Page
   
  
Prototype and script.aculo.us: You Never Knew JavaScript Could Do This!
  
Tired of getting swamped in the nitty-gritty of cross-browser, Web 2.0-grade JavaScript? Get back in the game with Prototype and script.aculo.us, two extremely popular JavaScript libraries, that make it a walk in the park. Be it AJAX, drag and drop, auto-completion, advanced visual effects, or many other great features, all you need is write one or two lines of script that look so good they could almost pass for Ruby code!

Web applications are getting richer and richer, with more interaction baked in every day. But JavaScript, DOM, CSS and a full host of other Web standards are quite complex, and the result isn't always browser compliant.

The Prototype and script.aculo.us libraries are veritable treasure troves, smoothing over all the usual nitty-gritty differences between browsers, and making most common features a breeze to implement. With this book, you can quickly wield the whole power of these extraordinary libraries.

Dive into Prototype, the library that makes JavaScript so much more powerful, and it looks a lot like Ruby code. Exploring the DOM, handling events, taming AJAX, and radically simplifying most of your scripting code: it all becomes easy-and very portable-with Prototype.

When it comes to advanced UI features, script.aculo.us is every web developer's dream come true: whether you need to create auto-completed text inputs, implement in-place editors, provide customized drag-and-drop behaviors, capture your users' attention with visual effects or simply build DOM fragments more efficiently, it's all there, and lightweight too.

This book guides you through all the details of these features, letting you use many technologies on the server side, such as PHP, vanilla Ruby, and Ruby On Rails, in countless examples illustrating every aspect. Power users will also learn the design philosophies of the libraries, and how to contribute to them and augment them for their own needs.

                  Reader Reviews 1 - 12 of 12                 
  
  
Review
Date
Review
Rating(5 High)
Review
Helpful
to:
Customer Review Reviewer
Info
Permanent
Link
Reader Reviews Below Sorted by Newest First
09-30-08 5 (NA)
(Hide Review...)  Christophe Hits a Home Run
Reviewer Permalink
If you have some Javascript experience, have hit the cross browser issues, and now are looking for the Prototype and Scriptaculous libraries to take away some of the pain then this is a great book for you. Christophe takes you through the entirety of the API with a very readable book. When a new method is introduced short examples are given that show not only how to use the call but also provide the context of how the functionality might be used in a real world web application. Christophe often explains why a particular technique is needed and explains the cross browser issue that it works around. This book also amazingly teaches some tricky Javascript concepts extremely well. For example, this book has a section explaining binding loss in Javascript that is better than anything I have read anywhere else. Also, Christophe apparently teaches at a University and it shows in the writing style - the end of each chapter has a really nice "what we learned" summary that really wraps things up nicely - if you need quick insight into what a particular piece of the API offers I would recommend heading to these "what we learned" summaries for a quick review.

In summary I recommend this book highly for the Javascripter with a Javascript foundation looking to take things to the next level with Prototype and Scriptaculous.
(Review Data Last Updated: 2008-11-19 05:42:23 EST)
09-19-08 5 (NA)
(Hide Review...)  Excellent Pragmatic Introduction
Reviewer Permalink
I set out to read this book from start to finish to understand what the Prototype and Script.aculo.us libraries were about, but before I could I found myself needing to use them, and the book was an extremely useful resource. The book compliments the online resources nicely, explaining not just what to do, but why, and how to do things best. This book does an excellent job of straddling the line between reference and introduction. The writing style is readable enough that you can read a few chapters just to get a sense of what to do, while at the same time, terse enough that you can find what you need quickly. If you are using JavaScript, get this book to help yourself from re-inventing things.
(Review Data Last Updated: 2008-09-30 04:42:03 EST)
09-13-08 3 (NA)
(Hide Review...)  Good reference but not a learning book
Reviewer Permalink
I learn best by example, and this book has a but a precious few. Most of the book is a glorified API documentation. I was really looking for a book with a lot of ajax examples ( or even non ajax ones ) but it seems this book does not fit the bill.
(Review Data Last Updated: 2008-09-21 04:40:49 EST)
06-06-08 2 3\4
(Hide Review...)  Starts Without Explanation
Reviewer Permalink
I approached this book with the expectation that it would teach me in the traditional gradual fashion. You start with some accessible portion and build on the rest. Well, he just starts out of the blocks at a full dash--full complexity--and you really don't know where to begin to understand what he's showing you. So, though I'm sure I could have taken some of his examples and used them, I feel like I did not really get an understanding of the WHY you do it this or that way. So, the ironic effect is that you will benefit the most from this book if you already know how to use these libraries. If you have never used them, then you will be on your own. So, this is NOT an introductory book.
Frankly, I have a good ten years experience using JavaScript and walking the DOM. So, I know my way around client-side scripting. I just felt like the introductory chapters were missing. You're expected to jump right into the hard-core stuff with no buildup, no gradual accumulation of the basics of this library. He was trying to prove how cool the Prototype and Scriptaculous libraries were and so he skipped the actual bones of the book. He skipped to the end and omitted the buildup. Buy this book wtih that caveat, in my opinion.
(Review Data Last Updated: 2008-09-14 07:35:36 EST)
05-02-08 5 1\2
(Hide Review...)  Great Prototype Reference
Reviewer Permalink
'Prototype and script.aculo.us: You Never Knew JavaScript Could Do This!' is a wonderful reference for learning how to use Prototype and writing better and more powerful Javascript code. Pragmatic has a history of publishing good books that are full of stuff and not fluff and this book follows in that tradition. After reading this book you will learn more about this efficient library that makes things easier for web developers, doing things like dragging and dropping, autocomplete code, and event handling that is better than ever before!

Content is spread over 400 pages and 20 chapters. The writing is solid and right to the point.

If you are a Javascript programmer that is looking for a better way to do things, pick up this book and enjoy.

***** RECOMMENDED
(Review Data Last Updated: 2008-06-07 04:03:26 EST)
03-23-08 4 0\1
(Hide Review...)  Good Example Driven Book
Reviewer Permalink
I received a review copy of this book, and was able to use some of the code examples to jazz up a site I was building. The examples are very well written, and the code works. If you are into programming in javascript, this book is worth a look.
(Review Data Last Updated: 2008-05-16 04:52:05 EST)
03-11-08 5 1\1
(Hide Review...)  Worth it alone for the Prototype section
Reviewer Permalink
This book builds upon the existing Prototype documentation found at http://prototypejs.org/api by putting the API in context. Other than the fact it uses Ruby for the server side examples (I'm sure everyone who reads it will have a differing opinion there), I have to say it was one of the most helpful programming books I've read. The short usage examples that were neatly tucked into the text were very useful and I found myself reading it almost like a novel and able to soak everything in without needing to download or code them out.

I began using Prototype during the middle of last year when it was in version 1.5. There are many welcomed updates in v1.6 and the author does a good job of filling the reader in on the important changes.

I recommend this book to anyone who might have dabbled in Prototype and is looking to take it to the next level. I also think others like myself will benefit who have been using v1.5 and are looking for a good excuse to stay up to date with the framework.

Oh and it covers Scriptaculous too which is great because the web documentation is seriously lacking compared to Prototype and jQuery
(Review Data Last Updated: 2008-03-24 01:51:59 EST)
02-24-08 5 2\2
(Hide Review...)  Pragmatic Prototype Indeed
Reviewer Permalink
Reading this little piece of work is a great way to very quickly learn the nuts and bolts of Prototype and Scriptaculous. This book is long on code and short on deep explanation and banter (for better or worse; hence "pragmatic programmer").

My background: I'm not a ruby programmer. I program in ASP.NET and I recently accepted a job where I needed to quickly learn prototype. When I settled on this I didn't realize that, along with choosing an intro book, I was also choosing a Prototype/Scriptaculous coding cookbook.

I couldn't tell you how many times the authors displayed a line of code and I analyzed the code for a moment then thought "A ha!" because they demonstrated a clean and concise way to do exactly what I needed to do. Segments of code that I had written that were 25 lines code be shortened to 3 or 4 due to their examples. In javascript the less code that needs to be downloaded to the client the better, so obviously any code reduction w/o affecting performance is a good thing.

My only criticism is perhaps the authors might have added a touch more coding explanations for complex code. Sometimes I would read a line of code and be totally lost as to how it functioned (which is essential if you want to reproduce said code on your own), and there would be little in way of explanation in the book. I quickly overcame this by supplementing the reading with the online documentation, which explained any prototype methods which might not have been thoroughly explained by the authors. I should probably iterate that this happened relatively few times overall.
(Review Data Last Updated: 2008-03-13 03:04:11 EST)
02-23-08 5 3\3
(Hide Review...)  Now I Use Prototype
Reviewer Permalink
I had heard of Prototype before, but had not begun using it until this book. I bought it after seeing the recommendation on the official Prototype site and I am glad I did. Book provided an excellent learning pace, practical examples, and an extensive resource in a very concise and easily readable way. Good buy for a developer's collection!
(Review Data Last Updated: 2008-03-13 03:04:11 EST)
02-17-08 5 1\1
(Hide Review...)  For beginners and experts alike
Reviewer Permalink
This book goes deep into Prototype and Scriptaculous' wonders. Follow some good code examples of draggables and slidables and other JavaScript special effects. Learn how they work and how to make them look splendid.

Following the advice in this book you'll aquire some serious JavaScript-fu, making your code clear, concise, unobtrusive, working in all browsers and achieve wonders very fast.

Overall a very handy book to have near whenever a JavaScript task comes up.
(Review Data Last Updated: 2008-02-23 14:30:21 EST)
01-14-08 4 4\4
(Hide Review...)  Excellent "Up to Speed" Introduction to the Prototype library
Reviewer Permalink
This book was a fantastic overview of all the various bits of the Prototype library. Clearly written and filled with useful examples this really helped catapult me into more professional Prototype usage.

The Pragmatic Programmer's have a solid (although short) history of turning out amazing books on the latest development technologies and techniques loooooooong before other publishers even start looking for authors on the subjects. I own about a dozen Pragprog books and have yet to be disappointed.

Just month or so before the release of this book Prototype 1.6 came out (with some major changes to Hashes and Events). I was beyond impressed with the book was updated to reflect these changes. Most publishers would have released the older version and come out with the 1.6 version of the book just in time for 1.7! This is the type of quality service you can expect from these folks.

My one major beef with the book is the topic of building custom classes. I really think this is where most developers are headed when working with unobtrusive javascript. "Classes" (really a abstraction created for programmer convenience since javascript isn't a class-based language) is the major advantage Prototype has over some other javascript libraries. Creating reusable classes for dealing with common, repeating parts of your site that you want to enhance with javascript is an excellent way to cut down on the amount of javascript you write.

Classes get only 8 pages attention, otherwise this book would have been a perfect 5.
(Review Data Last Updated: 2008-02-17 23:29:15 EST)
01-09-08 3 2\5
(Hide Review...)  Lots of "How" but None of the Interesting "Why"
Reviewer Permalink
§

The author has a fluid, confident, and even literate writing style that is rare in books of this nature. It is a loss that he did not direct more attention to the motivation behind using these two JavaScript libraries. However, if you are an experienced object-oriented programmer ready for some heads-down JavaScript syntax, this book may be for you.

If you need reasons *why* you should be using libraries instead of rolling your own and if you want to know *why* you should be sweating to learn Prototype and script.aculo.us in particular, then this book is not for you. If you like to see code in the context of real Web application situations and challenges, then this book is a heavy slog indeed.

You can't help but ask yourself these broader questions when you see the simple drag and drop example. You wonder *why* you would want 5 script files totaling 200,000 bytes to do something you could have accomplished with far less code. You wonder *why* the author gives this example which fails in such a spectacular manner in IE6.

Actually, several of the downloadable code examples failed in interesting ways in IE6 and failed in very boring ways in Opera 8 under WinXP. For most of us making a glamorous living coding Web applications, failing in IE6 is not an option. Since cross-browser coding is one of the recognized strengths of using libraries of this sort, I have to conclude that this book does not make a very good case in the end.

§
(Review Data Last Updated: 2008-01-15 08:42:53 EST)
  
                  Reader Reviews 1 - 12 of 12                 
  
  
  
  
  
  

Because the data used to generate this site come from outside sources, VeryWellSaid.com cannot guarantee the completeness or accuracy of the data.
Search VeryWellSaid™
Google
Web VeryWellSaid™
New subjects are added every week.
View Subjects Below by:
* Top Selling
 (click category name, left)
* Top-Rated Top Sellers
 (click 'Top Rated', right)
In the news...  
Dubai\UAE Top Rated
Influenza\Bird Flu Top Rated
Iraq Top Rated
Supreme Court Top Rated
All Books Top Rated
Arts Top Rated
Photography Top Rated
Digital Photography Top Rated
Digital Cameras Top Rated
Biography Top Rated
Business Top Rated
Management Top Rated
Marketing Top Rated
Sales Top Rated
Stocks Top Rated
Bonds Top Rated
Real Estate Top Rated
Trading Top Rated
Commodities Trading Top Rated
Time Management Top Rated
Starting A Business Top Rated
Children's Top Rated
Comics Top Rated
Computers Top Rated
PC Top Rated
Mac Top Rated
Programming Top Rated
Design Patterns Top Rated
.Net Top Rated
C# Top Rated
Vb.Net Top Rated
Asp.Net Top Rated
Java Top Rated
Python Top Rated
PHP Top Rated
Perl Top Rated
Javascript Top Rated
Ajax Top Rated
CSS Top Rated
Open Source Top Rated
SQL Top Rated
Databases Top Rated
Oracle Top Rated
MySql Top Rated
Sql Server Top Rated
IIS Top Rated
Apache Top Rated
Linux Top Rated
Windows Server Top Rated
Project Management Top Rated
HTML Top Rated
UML Top Rated
IT Certifications Top Rated
Cisco Certifications Top Rated
MCSE Top Rated
MCSD Top Rated
Cooking Top Rated
Italian Cooking Top Rated
Vegetarian Cooking Top Rated
Wine Top Rated
Engineering Top Rated
Entertainment Top Rated
Health Top Rated
Nutrition Top Rated
Dieting Top Rated
Sex Top Rated
History Top Rated
Military History Top Rated
British History Top Rated
Middle East History Top Rated
Land Battles Top Rated
Naval Warfare Top Rated
Air Warfare Top Rated
9/11 Top Rated
Terrorism Top Rated
Home Top Rated
Mortgage\Home Equity Loan Top Rated
Cars Top Rated
Car Buying Top Rated
Sports Cars Top Rated
Cat Top Rated
Humor Top Rated
Horror Top Rated
Law Top Rated
IP Law Top Rated
Legal History Top Rated
Fiction Top Rated
Oprah's Book Club Top Rated
Medicine Top Rated
Cancer Top Rated
Stroke Top Rated
Heart Disease Top Rated
Fertility Top Rated
Diabetes Top Rated
Pharmacology Top Rated
Back Problems Top Rated
Menopause Top Rated
Thyroid Top Rated
Pain Top Rated
Organic Chemistry Top Rated
Immune System Top Rated
Mystery Top Rated
Nonfiction Top Rated
Outdoors Top Rated
Running Top Rated
Radio Control Models Top Rated
Guns Top Rated
Parenting Top Rated
Divorce Top Rated
Professional Top Rated
Reference Top Rated
Religion Top Rated
Romance Top Rated
Science Top Rated
Physics Top Rated
Chemistry Top Rated
Astronomy Top Rated
Psychology Top Rated
Science Fiction Top Rated
Sports Top Rated
Teens Top Rated
Travel Top Rated
USA Top Rated
Europe Top Rated
France Top Rated
Italy Top Rated
England Top Rated
China Top Rated
All Books Arts Biography Click Here For An A-Z Index Of All 213 Best-Seller Subjects Business Children's Comics
Computers Cooking Engineering Entertainment Health History Home Horror Humor Law Fiction Medicine Mystery
Nonfiction Outdoors Parenting Professional Reference Religion Romance Science Sci-Fi Sports Teens Travel
In Association with Amazon.com

Cache miss
(not cached)