Login |
Register
Collabnet Enterprise Edition
Login |
Register
My start page ProjectsCommunitiesJava.net
Project>
EDU-Gelc>
edu-gelc-main>
Edu-Incubator>
Compdoc2cn
Project tool
Project homepage
Project Message Discussion Forum Mail List
Project Document Version Control - CVS
Event tracking
how do I...
GET RELEASE Notes for Collabnet 3.5.1? Help?
Prototype.js development notes
Overlay version 1.3.1
1. What is prototype?
Maybe you haven't used it yet, prototype.js is a JavaScript package written by SAM Stephenson. This concept of conceivement of a good compatibility standard will assume the burden of creating fat clients, high-interactive web applications. Easily add Web 2.0 characteristics.
If you have experienced this package recently, you are likely to find a document is not one of its strengths. Like all the developers I have, I can only take one of the source code of Prototype.js and test each of them. I want to write a note when I learn him and then share it to others.
I also provide an object, class, method, and extended unofficial reference for this package.
2. General method
This package contains many predefined objects and versatile methods. The obvious purpose of writing these methods is to reduce your large number of repeating coding and usage.
2.1. Use $ () method
$ () Method is to use a convenient discument.getlementById () method in the DOM, just like this DOM method, this method returns the element of the ID incoming ID.
This is more winning more than a method in the DOM. You can pass multiple IDs as a parameter and then returns an Array object with an element with all required elements. The following example will describe you.