prototype and script.aculo.us

431 1.2K 0
prototype and script.aculo.us

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... the Prototype Core team, consisting of Seth Dillingham, Andrew Dupont, Mislav Marohni´ , Justin Palmer, Christophe Porteneuve, Tobie c Langel, Scott Raymond, and Dan Webb; the thousands of hours of work by hundreds of contributors from the Prototype and script.aculo.us community; and, of course, Christophe, for providing this very book Big thanks to all of them and to you Sam Stephenson (Creator of Prototype) ... (Prototype Core), Tom Gregory (a prominent voice on the official mailing list), Sébastien Gruhier (of Prototype Window Class fame), Amir Jaballah, Tobie Langel (Prototype Core), Justin Palmer (again), and Sunny Ripert Many readers also got onto the bandwagon at the beta stage and went so far as to report a number of typos, errata, and the like Among those, I’m especially grateful to Steve Erbach, Brandon... late evenings and afternoons I spent writing at my desk, pushing me ahead, and giving me strength and love at all turns I could not dream of more This book is for her 19 Part I Prototype Furious activity is no substitute for understanding H H Williams Chapter 2 Discovering Prototype This part provides in-depth coverage of Prototype, which is the JavaScript library at the core of this book Prototype is... standard algorithms, I/O systems, or what have you It stands in this middle ground between down -and- dirty manual coding of everything and full-fledged frameworks with their countless objects Most massive frameworks do indeed use Prototype internally and build upon it U SING P ROTOTYPE IN O UR P ROJECT Note, however, that there is a more visual-oriented library working closely with Prototype called script.aculo.us; ... src=" /prototype. js" > Where Can We Get Prototype? The official website is the authoritative source for the latest public version of Prototype and also provides detailed, up-to-date API documentation with plenty of examples, tutorial-style articles, and a blog updated by the Prototype Core team It’s located at http://prototypejs.org 2.3 What Does Our JavaScript Look Like When Using Prototype? ... 3 http://groups.google.com/group/rubyonrails-spinoffs http://prototypejs.org 16 W HAT ’ S IN T HIS B OOK , AND H OW I S I T O RGANIZED ? • Like many people, you may just like having the physical copy of the book close at hand It just is nicer to the eye than on-screen text, you know? I discovered Prototype and script.aculo.us in late 2005 and dived into them for real around June 2006 (since my early... language whose design has heavily influenced our libraries: Prototype and script.aculo.us are “a web programmer’s best friends.” According to the feedback we’ve received, we’re not the only ones who feel that way Two -and- a-half years after the initial release, Prototype and script.aculo.us are in use on many of the web’s most popular websites and power all sorts of innovative web applications This rapid popular... short section of code in Prototype that implemented the now-ubiquitous “yellow fade technique.” With a desire to make web applications more user-friendly and provide eye candy that’s really useful to boot—it quickly grew into a complete real-time DOM-based effects engine, drag -and- drop framework, and controls library Version 1.0 was released in June 2005 You should understand that script.aculo.us is distinct... objects, and nifty tools, arranged in a reasonably consistent set But before we go ahead, we need to answer a few questions and tackle the more involved subjects with a clear mind and proper expectations For example, what’s Prototype exactly? What should we expect it to do for us? What kind of lingo may we need to learn? And apparently it relies on well, prototypes, so what are JavaScript prototypes... official web sites and are actually backend-agnostic: you can use them over PHP, NET, J2EE, Python, Delphi, or anything else that helps you produce dynamic web pages And indeed, thousands of developers do just that every day Also, script.aculo.us relies on Prototype, and both libraries are written in a consistent style These libraries will, quite simply, rock your world You will discover, as I and countless . JavaScript Code . . . . . . . 248 II script. aculo. us 252 13 Discovering script. aculo. us 253 13.1 The Modules of script. aculo. us . . . . . . . . . . . . . . . 253 13.2 Using script. aculo. us in.

Ngày đăng: 24/04/2014, 16:01

Mục lục

  • Introduction

    • It's About Time

    • What's in This Book, and How Is It Organized?

    • Prototype

      • Discovering Prototype

        • What Is Prototype, and What Is It Not?

        • Using Prototype in Our Project

        • What Does Our JavaScript Look Like When Using Prototype?

        • Prototype Jargon and Concepts

        • What Are Prototypes Anyway?

        • Running Prototype Code Samples in This Book

        • Quick Help with the Dollars

          • Shortcuts Should Be Short

          • Quick Fetching of Smart Elements with $

          • $w, Because Array Literals Are Boring

          • $A, the Collection Unifier

          • $F Is a Field Expert

          • $H Makes a Hash of Things

          • Handling Ranges with $R

          • Regular JavaScript on Steroids

            • Generic Object Manipulation

            • Your Functions Actually Know More Tricks

            • Advanced Collections with Enumerable

              • The Core Method: Iterating with each

              • Getting General Information About Our Collection

              • Finding Elements and Applying Filters

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan