|
Chapter 1. Why Use Prototype and Scriptaculous?If you've ever written cross-browser JavaScript then you'll know how poorly JavaScript interfaces on different browsers are matched. Prototype takes a lot of these headaches away, leaving a consistent, standards-compliant API that is compatible with multiple browsers. Prototype and Scriptaculous do not bring anything new to JavaScript; they simply make it quicker, easier, and less complex. In this section we will discuss a few areas where using Prototype and Scriptaculous drastically simplifies code. Chapter 2. Techniques Used When Calling the APIs As previously mentioned, Prototype and Scripaculous do not bring anything new to JavaScript. They do, however, use all of its features and stretch them to their limits. This section discusses some of the more advanced JavaScript features that both libraries use. Chapter 3. Using Prototype Chapter 4. Using Scriptaculous Chapter 5. Prototype and Scriptaculous Members As the number of interfaces developed using browser technology is increasing, user expectations for UI sophistication are also increasing. Techniques that might be suitable for an occasional-use website or a non-interactive news site quickly become tedious when used on a daily basis. JavaScript helps developers break users out of this tedium, allowing the creation of more powerful user interfaces while still keeping the zero-install advantages of a browser. JavaScript, however, is neither the easiest language in which to develop nor the most forgiving. Supporting the quirks and API differences of various browsers often drives developers to tear their hair out. Difficulty doing easy things soon leads to near impossibility of doing hard things. Prototype and Scriptaculous pull JavaScript back from this brink and make it a much stronger technology for creating reasonably complex user interfaces. It offers more powerful abstractions and a consistent API. This document is a jump-start into using Prototype and Scriptaculous that will allow readers to start using these libraries and provide enough insight to understand the Prototype and Scriptaculous resources available on the Web. As such, is it not meant as authoritative documentation, but more as a guide to what these technologies can do and how to get started using them. Download free ebooks on javascript: Prototype and Scriptaculous Taking the pain out of Javascript
|
Free programing ebooks
Chapter 1. Why Use Prototype and Scriptaculous?