|
Chapter 1 - What You Should Know About Prototype, JavaScript, and the DOM Before jumping into the deep end, you should learn about where Prototype comes from—its purpose, origin, and philosophy.We’ll also discuss what differentiates Prototype from other libraries.Chapter 2 - Prototype Basics - You can do far more with Prototype than what I’ve just described, but the functions in this chapter are the ones you’ll use most often. And although they solve common problems, they also form the foundation for a general scripting philosophy: one that espouses fewer lines of code, separation of content and behavior, and the principle of least surprise. Chapter 3 - Collections (Or, Never Write a for Loop Again) - Collections are at the heart of DOM scripting—arrays, hashes, DOM NodeLists, and various other groups of items. Nearly all your scripts will do some form of iteration over an array. So why is iteration so bland in JavaScript? Chapter 4 - Ajax: Advanced Client/Server Communication - The code you’ve written in this chapter demonstrates the flexible design of Prototype’s Ajax classes—simple on the surface, but robust on the inside. Chapter 5 - Events - The watchword for this chapter has been normalization: making different things behave uniformly. Prototype makes two different event systems behave uniformly; it also makes native events and custom events behave uniformly. Chapter 6 - Working with the DOM - There’s a lot of meat to Prototype’s DOM support—primarily because that’s where most of your headaches come from. Chapter 7 - Advanced JavaScript:Functional Programming and Class-Based OOP - Earlier chapters introduced you to object-oriented programming and functional programming. So you’re probably familiar with what they are, but may not realize yet why they’re useful. Chapter 8 - Other Helpful Things:Useful Methods on Built-Ins - This chapter, then, will explore the convenience methods that Prototype adds to built-in objects.Many of them are used within Prototype itself, but they’re likely to be useful in your own code as well. Chapter 9 - What You Should Know About DHTML and script.aculo.us - DHTML is the termassigned to a collective set of technologies used to create dynamic web content, including HTML, JavaScript, and CSS. The dynamism in DHTML comes from the fact that we’re modifying the structure and presentation layers of the document (HTML and CSS) after the page has been loaded. Chapter 10 - Introduction to script.aculo.us Effects - In script.aculo.us, an effect is the modification, over time, of any aspect of an element. Chapter 11 - Enabling Draggables,Droppables, and Sortables - In this chapter, we’ll look at the two low-level objects, Draggable and Droppables, provided by script.aculo.us for drag-and-drop. Then we’ll look at a high-level object, Sortable, that adapts drag-and-drop for a specific task. Download free ebooks for javascript: Practical Prototype and script.aculo.us
|
Free programing ebooks
Chapter 1 - What You Should Know About Prototype, JavaScript, and the DOM Before jumping into the deep end, you should learn about where Prototype comes from—its purpose, origin, and philosophy.We’ll also discuss what differentiates Prototype from other libraries.