|
Chapter 1 provides a general introduction to the Prototype and Scriptaculous libraries and their place in the modern Ajax landscape. Chapter 2 introduces our main sample application, a web-based image viewer called QuickGallery. In chapters 3 and 4, we use QuickGallery to explore the different styles of Ajax supported by Prototype, from the basic components required to make an Ajax request, through to the more sophisticated helpers developed in recent versions of Prototype, which address architectural issues in the way an application manages its HTTP traffic.Part 2 turns to the Scriptaculous libraries, devoting a chapter to each of the key components. Chapter 5 looks at the Effects subsystem, and takes us from the oneline instant gratification of invoking our first special effect, through customizing and composing effects, on to writing our own effect types. Chapter 6 examines the Controls subsystem, which provides out-of-the-box Ajax-enabled components for use on web pages. Again, we run the full gamut from one-line deployment to a thorough understanding of customization and composition of these components. Chapter 7 looks at the drag-and-drop subsystems of Scriptaculous. In Scriptaculous, drag and drop is layered, with relatively simple objects providing the basic capabilities, and sophisticated drag-and-drop UI components being built on top of these. Part 3 is intended mainly for the language aficionados. JavaScript is a malleable language and Prototype molds it into some very interesting, and useful, structures. We step through the various new capabilities that Prototype provides to the core object types, and illustrate each feature with a small practical example. Chapter 8 looks at the JavaScript Object, the base class upon which all other JavaScript objects are founded. We show how to create new objects, and reusable types of objects, and how to work with JavaScript’s prototype-based system of inheritance. Chapter 9 looks at JavaScript functions and the related concept of closures. This is a small but powerful chapter, covering one of the most misunderstood and useful features of the JavaScript language. Chapter 10 looks at JavaScript arrays. It’s no overstatement to say that Prototype completely changes the way one works with Arrays, adding over thirty new methods. In chapter 11, we look at Prototype’s support for the web browser environment, namely the Document Object Model and HTML forms. Part 4 concludes our exploration of these libraries with a couple of advanced topics. Chapter 12 returns to the QuickGallery application that we described in part 1 and applies the knowledge garnered in parts 2 and 3 of the book to rapidly add new features to the app. Chapter 13 looks at the integration between Scriptaculous and Prototype and the Ruby on Rails framework, and shows how Rails builds upon these libraries to deliver even more elegance and ease of use. Download Prototype and Scriptaculous in Action
|
Free programing ebooks
Chapter 1 provides a general introduction to the Prototype and Scriptaculous libraries and their place in the modern Ajax landscape. Chapter 2 introduces our main sample application, a web-based image viewer called QuickGallery. In chapters 3 and 4, we use QuickGallery to explore the different styles of Ajax supported by Prototype, from the basic components required to make an Ajax request, through to the more sophisticated helpers developed in recent versions of Prototype, which address architectural issues in the way an application manages its HTTP traffic.