... Configurable All of the classes in Prototype and script .aculo. us share a powerful design principle: they’re able to be exhaustively configurable and dead-simple to use at the same time. Is there ... developing with web standards as a social contract between developers and vendors: do your part, and we’ll do ours. Make your scripting environment behave pre- dictably and ration...
Ngày tải lên: 03/07/2014, 01:20
... gets even more frustrating when extending built-in classes, as Prototype does: String .prototype. strip = function() { // }; String .prototype. gsub = function() { // }; String .prototype. times = ... voodoo. Prototype takes care of this behind the scenes by defining custom element meth- ods on HTMLElement .prototype in browsers that support it, and copying these instance CHAPTER 2...
Ngày tải lên: 03/07/2014, 01:20
Practical prototype and scipt.aculo.us part 14 docx
... can return an error status code instead of the typical 200. And it can use the content of the response to present a friend- lier error message to the user. PHP lets us do this rather easily. <?php // ... canonical—we just made it up. But Apache delivers this code just fine, and Prototype properly recognizes it as an error code. Test this in your browser. Open up breakfast.php dir...
Ngày tải lên: 03/07/2014, 01:20
Practical prototype and scipt.aculo.us part 26 docx
... kidding me.” No, I’m serious. There are two reasons why Prototype uses the dollar sign ( $) as part of its naming scheme: • As a shortcut for a method that will be used quite often (e.g., $, ... can’t be used as an identifier (just like you can’t define a function named if or while). Oddly enough, super is not used in JavaScript 1.x, but was preemptively reserved for future use. By addin...
Ngày tải lên: 03/07/2014, 01:20
Practical prototype and scipt.aculo.us part 36 docx
... needs, you can write custom code on top of script .aculo. us. The script .aculo. us Web Site You can learn more about script .aculo. us at its web site, at http://script .aculo. us, which includes collaborative, ... twins. Similarities to Prototype If you know Prototype, you’ll have no trouble picking up script .aculo. us. • It’s MIT-licensed. script .aculo. us carries the same...
Ngày tải lên: 03/07/2014, 01:20
Practical prototype and scipt.aculo.us part 38 docx
... a constant speed. script .aculo. us Effects Fortunately, script .aculo. us manages all these annoying details for you. It creates a base class for running effects, and then defines scads and scads of specific ... SCRIPT .ACULO. US EFFECTS 221 In other words, from the starting and ending values of each element’s properties, Effect.Morph figures out which CSS properties it needs to...
Ngày tải lên: 03/07/2014, 01:20
Practical prototype and scipt.aculo.us part 41 docx
... right above it. So this pair of effects is useful for collapsible panels, accordion menus, and even things like expandable trees. Effects Are Asynchronous We’ve already covered how JavaScript has ... an old soldier), so it’s best used on items that will disappear and not be used again. Likewise, Effect.Appear suggests the creation of something new, so it’s best used on items that haven’t...
Ngày tải lên: 03/07/2014, 01:20
Practical prototype and scipt.aculo.us part 1 ppt
... Programming and Class-Based OOP 139 ■CHAPTER 8 Other Helpful Things: Useful Methods on Built-Ins 167 PART 2 ■■■ script .aculo. us ■CHAPTER 9 What You Should Know About DHTML and script .aculo. us 193 ■CHAPTER ... 297 ■INDEX 315 iii
Ngày tải lên: 03/07/2014, 01:20
Practical prototype and scipt.aculo.us part 2 pot
... Here) 91 Pre-DOM, Part 1 91 Pre-DOM, Part 2 92 Events: The Crash Course 94 Using Event#stopPropagation, Event#preventDefault, and Event#stop 99 A Further Example 101 Events and Forms 102 Client-Side ... 159 Using Function#curry 159 Using Function#delay and Function#defer 161 Using Function#bind 164 Summary 165 ■CHAPTER 8 Other Helpful Things: Useful Methods on Built-Ins 167 Using S...
Ngày tải lên: 03/07/2014, 01:20
Practical prototype and scipt.aculo.us part 3 pot
... both for creating Prototype and for inviting me to be a part of Prototype Core. Other team members gave critical moral support: Thomas Fuchs, Tobie Langel, Mislav Marohnic, and Justin Palmer. Objects, ... KNOW ABOUT PROTOTYPE, JAVASCRIPT, AND THE DOM4 About the Technical Reviewer After getting hooked on the Web in 1996 and spending several years pushing pixels and bits for th...
Ngày tải lên: 03/07/2014, 01:20