Prototype and Scriptaculous in Action by Dave Crane: Book Cover
  • Cover Image

Prototype and Scriptaculous in Action by Dave Crane, Bear Bibeault, Tom Locke, Thomas Fuchs (Foreword by)

BUY IT NEW

  • $44.99 Online price
  • $40.49 Member price
  • Join Now
  • skip to cart
  • Add To List uiAction=GetAllLists&page=List&pageType=list&ean=9781933988030&productCode=BK&maxCount=100&threshold=3

Usually ships within 24 hours

Delivery Time and Shipping Rates

FIND & RESERVE AN IN-STORE COPY

Enter a zip code

(Paperback)

  • Publisher: O'Reilly Media, Incorporated
  • Pub. Date: March 2007
  • ISBN-13: 9781933988030
  • Sales Rank: 603,733
  • 511pp
 
  • Overview
  • Editorial Reviews
  • Customer Reviews
  • Full Product Details

Synopsis

Common Ajax tasks should be easy, and with Prototype and Scriptaculous they are. Prototype and Scriptaculous are libraries of reusable JavaScript code that simplify Ajax development. Prototype provides helpful methods and objects that extend JavaScript in a safe, consistent way. Its clever Ajax request model simplifies cross-browser development. Scriptaculous, which is based on Prototype, offers handy pre-fabricated widgets for rich UI development.

Prototype and Scriptaculous in Action is a comprehensive, practical guide that walks you feature-by-feature through the two libraries. First, you’ll use Scriptaculous to make easy but powerful UI improvements. Then you’ll dig into Prototype’s elegant and sparse syntax. See how a few characters of Prototype code can save a dozen lines of JavaScript. By applying these techniques, you can concentrate on the function and flow of your application instead of the coding details. This book is written for web developers with a working knowledge of JavaScript.

Biography

Dave Crane has 10 years+ in IT, using Java, PHP, Python, UNIX, etc. in the fields of digital TV, banking, and sustainable development. He is also a best-selling author of several Ajax books in the industry.

Customer Reviews

  • Reader Rating:
  • Ratings: 1Reviews: 1

Prototype and Scriptaculous in Actionby Anonymous

Reader Rating:
See Detailed Ratings

May 07, 2007: JavaScript libraries have been in the spotlight the past two years and have been gaining popularity especially the past year with new ones popping up like JQuery, YUI!, Mochikit, etc. Though all of these libraries take after in some form or another the base library Prototype and effect library Scriptaculous. Thomas Fuchs is the main developer of the Scriptaculous library and Sam Stephenson is the developer of ProtoType. Although you can go to web site and go through the documentation at each site, having a book with other people?s explanations and examples are a great help for the newbie and advanced user. Each library has its own purpose so the authors take them one by one and explain what can be done with each and then show examples as they go. I like how all the example code are pointed out in the text as the author goes through them so you can understand the program flow as you are reading through the explanations. As a preface for people interested in buying this book, you should have a solid foundation on JavaScript or at least have a good understanding of OOP techniques in other languages. Since this book goes through many Ajax implementations as well, knowledge of a server-side language 'PHP, ASP.NET, Java' would also be helpful. I feel that if you are a beginner to JavaScript or programming that this book may well overwhelm you with technical information that you might not fully understand. But enough of that, let?s get on with the details of the book?. Chapter 1: A description, history and simple sample usage examples are given to the reader about Prototype and Scriptaculous. Basically Prototype provides a set of language extensions for JavaScript, for the browser environment and for the XMLHttpRequest 'object used for Ajax' object. Scriptaculous 'and other libraries' build on Prototype?s foundations to create widgets and other end-user stuff. The thing that sounds weird for people like me who don?t use JavaScript on a day-to-day basis is that JavaScript can be ?extended?. I use JavaScript at work on some projects creating some simple DOM scripts but I never knew you could extend the language. JavaScript provides a mechanism known as prototype-based inheritance which allows for this. Prototype doesn?t really ?do? anything apart from making it easier to create complex client applications. Though it does do a lot in that sense, but the author has to then use these extensions to create their applications. Scrptaculous makes creating cool effects such as drag and drop, animation and such in only a few lines of code. The author expands on this as well as some simple Ajax illustrations using Prototype?s Ajax.Request class in the first chapter. Chapter 2: A sample application is discussed called QuickGallery that displays a set of images in a photo gallery display using PHP to perform some server-side functions. The author created two versions of this web app 'classic ? page refreshing' and the web 2.0 'Ajax version' to show the readers what changes would be made and why. The application is simple enough but has enough detail to make this example a realistic scenario of converting a real web application to a more Ajax-based application. Chapter 3: Some basic techniques of Ajax development are discussed such as content-centric Ajax, script-centric Ajax, and data-centric Ajax. A review of Prototype?s Ajax classes: Ajax.Base, Ajax.Request as well as using XML and JSON for data storage and transfer. A very...