Sign Up
or
Log In
Privacy
and
TOS
Contact Us
Home
Upload and Management
File Browse
Community
F.A.Q.
About Fliiby
Blog
Javascript Prototype 1.6.0.2 API
Provided by :
DejanG
» Folder :
Documents
» Category :
Document »
Tutorial
"Prototype 1.6 The Complete API Reference Sam Stephenson and the Prototype Team Prototype 1.6: The Complete API Reference Sam Stephenson and the Prototype Team Published March 2008. 1st edition for version 1.6 (v1.6.0.2). Copyright © 2006-2008 Sam Stephenson. Some rights reserved. Prototype is a JavaScript framework that aims to ease development of dynamic web applications. Prototype was created by Sam Stephenson who released the framework as an open-source project in February 2005. Other members of the core development team are: Thomas Fuchs, Justin Palmer, Andrew Dupont, Dan Webb, Scott Raymond, Mislav Marohni#, Christophe Porteneuve, Tobie Langel and Seth Dillingham. This PDF book version of the Prototype API reference was created by Josh Clark , but all content comes from the Prototype site and is the intellectual property of Sam Stephenson and the Prototype core team. This PDF is distributed under the Creative Commons Attribution-ShareAlike 2.5 . This means that you can copy, redistribute or create your own derivative works from this PDF, provided that you do so with the same Creative Commons license and include the foregoing notice. While every precaution has been taken in the preparation of this book, the publisher assumes no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein. 3 2 1 1 2 http://www.prototypejs.org/ http://www.globalmoxie.com/ 3 http://creativecommons.org/licenses/by-sa/2.5/ Table of Contents 1. New in Prototype 1.6 ............................................................................................................1 Event API Enhancements ................................................................................................1 Complete rewrite of the Hash class ....................................................................................2 Function API Enhancements ............................................................................................3 Class API Enhancements .................................................................................................5 Ajax API Enhancements ..................................................................................................6 DOM API Enhancements ................................................................................................6 Template API Enhancements ...........................................................................................9 Extended grep semantics .................................................................................................9 Improved support for JavaScript 1.6 and WHATWG 1.0 standards ..................................... 10 2. Utility Methods .................................................................................................................. 11 $ .................................................................................................................................. 11 $$ ................................................................................................................................ 13 $A ............................................................................................................................... 15 $F ................................................................................................................................ 16 $H ............................................................................................................................... 16 $R ................................................................................................................................ 16 $w ................................................................................................................................ 17 Try.these ...................................................................................................................... 18 document.getElementsByClassName (deprecated) ................................................................ 18 3. Ajax .................................................................................................................................. 21 Ajax Options ................................................................................................................ 21 Ajax.PeriodicalUpdater ................................................................................................... 25 Ajax.Request ................................................................................................................. 28 Ajax.Responders ............................................................................................................ 32 Ajax.Response ............................................................................................................... 33 Ajax.Updater ................................................................................................................. 34 4. Array ................................................................................................................................ 37 Why you should stop using for…in to iterate (or never take it up) .................................... 37 What is a developer to do? .............................................................................................. 38 clear ............................................................................................................................. 39 clone ............................................................................................................................ 39 compact ....................................................................................................................... 39 each ............................................................................................................................. 40 first .............................................................................................................................. 40 flatten ........................................................................................................................... 40 from ............................................................................................................................ 40 indexOf ........................................................................................................................ 41 inspect .......................................................................................................................... 41 last ............................................................................................................................... 42 reduce .......................................................................................................................... 42 reverse .......................................................................................................................... 42 size .............................................................................................................................. 43 toArray ......................................................................................................................... 43 toJSON ........................................................................................................................ 43 uniq ............................................................................................................................. 43 without ......................................................................................................................... 44 5. Class ................................................................................................................................. 45 addMethods .................................................................................................................. 45 create ........................................................................................................................... 46 6. Date ................................................................................................................................. 49 toJSON ........................................................................................................................ 49 7. Element ............................................................................................................................ 51 Element as a constructor ................................................................................................ 52 The old way .................................................................................................................. 52 The new way ................................................................................................................. 52 absolutize ..................................................................................................................... 52 addClassName .............................................................................................................. 53 addMethods .................................................................................................................. 53 adjacent ........................................................................................................................ 56 ancestors ...................................................................................................................... 57 childElements ............................................................................................................... 58 classNames (deprecated) .................................................................................................... 58 cleanWhitespace ............................................................................................................ 59 clonePosition ................................................................................................................ 60 cumulativeOffset ........................................................................................................... 61 cumulativeScrollOffset ................................................................................................... 61 descendantOf ................................................................................................................ 61 descendants .................................................................................................................. 62 down ............................................................................................................................ 62 empty ........................................................................................................................... 64 extend .......................................................................................................................... 64 fire ............................................................................................................................... 65 firstDescendant ............................................................................................................. 66 getDimensions .............................................................................................................. 66 getElementsByClassName (deprecated) ............................................................................... 67 getElementsBySelector (deprecated) .................................................................................... 67 getHeight ...................................................................................................................... 68 getOffsetParent ............................................................................................................. 69 getStyle ......................................................................................................................... 69 getWidth ...................................................................................................................... 70 hasClassName ............................................................................................................... 70 hide .............................................................................................................................. 71 identify ......................................................................................................................... 72 immediateDescendants (deprecated) .................................................................................... 72 insert ............................................................................................................................ 73 vi | Prototype 1.6 inspect .......................................................................................................................... 73 makeClipping ................................................................................................................ 74 makePositioned ............................................................................................................. 74 match ........................................................................................................................... 75 next ............................................................................................................................. 76 nextSiblings .................................................................................................................. 77 observe ......................................................................................................................... 78 positionedOffset ............................................................................................................ 78 previous ....................................................................................................................... 79 previousSiblings ............................................................................................................ 80 readAttribute ................................................................................................................. 81 recursivelyCollect ........................................................................................................... 81 relativize ....................................................................................................................... 82 remove ......................................................................................................................... 82 removeClassName ......................................................................................................... 82 replace .......................................................................................................................... 83 scrollTo ........................................................................................................................ 84 select ............................................................................................................................ 85 setOpacity .................................................................................................................... 86 setStyle ......................................................................................................................... 86 show ............................................................................................................................ 87 siblings ......................................................................................................................... 89 stopObserving ............................................................................................................... 89 toggle ........................................................................................................................... 89 toggleClassName ........................................................................................................... 91 undoClipping ................................................................................................................ 91 undoPositioned ............................................................................................................. 91 up ................................................................................................................................ 93 update .......................................................................................................................... 94 viewportOffset .............................................................................................................. 96 visible ........................................................................................................................... 96 wrap ............................................................................................................................. 97 writeAttribute ................................................................................................................ 98 8. Enumerable ....................................................................................................................... 99 The context parameter ................................................................................................. 99 Aliases: it’s all about having it your way .......................................................................... 100 Using it efficiently ........................................................................................................ 100 collect, invoke, pluck and each: thinking about the use case ...................................... 100 reject and findAll vs. partition ............................................................................ 100 Mixing Enumerable in your own objects ....................................................................... 101 all .............................................................................................................................. 102 any ............................................................................................................................. 102 collect ........................................................................................................................ 103 detect ......................................................................................................................... 104 each ........................................................................................................................... 104 | vii eachSlice ..................................................................................................................... 106 entries ........................................................................................................................ 106 find ............................................................................................................................ 107 findAll ........................................................................................................................ 107 grep ........................................................................................................................... 108 inGroupsOf ................................................................................................................ 109 include ....................................................................................................................... 109 inject .......................................................................................................................... 110 invoke ........................................................................................................................ 110 map ........................................................................................................................... 111 max ....................................................................................................................."
You need to upgrade your
Flash Player
, or try to enable javascript in order see this document properly.
API reference for Javascript Prototype library, version 1.6.0.2 javascript API prototype 1.6.0.2 Technology-Internet
Text sample from document:
"Prototype 1.6 The Complete API Reference Sam Stephenson and the Prototype Team Prototype 1.6: The Complete API Reference Sam Stephenson and the Prototype Team Published March 2008. 1st edition for version 1.6 (v1.6.0.2). Copyright © 2006-2008 Sam Stephenson. Some rights reserved. Prototype is a JavaScript framework that aims to ease development of dynamic web applications. Prototype was created by Sam Stephenson who released the framework as an open-source project in February 2005. Other memb..."
Javascript Prototype 1.6.0.2 API
API reference for Javascript Prototype library, version 1.6.0.2 javascript API prototype 1.6.0.2 Technology-Internet...
more
File Name:
Javascript-Prototype-1.6.0.2-API.pdf
Provided by:
DejanG
Folder:
Documents
(Books, presentations, magazines, newspapers etc)
Category:
Document »
Tutorial
Size:
1257.92 kb
Extension:
pdf
Rating:
0
Views:
117
Downloads:
15
Uploaded:
07/04/09 06:45
Tags:
javascript
API
prototype
1.6.0.2
Technology-Internet
Embed:
Link:
Forum:
digg
stumble
reddit
delicio
furl
facebook
Comments
:
0
No comments yet..
Add comment:
(
Sing Up or Log In
)
Javascript Prototype Cheatsheet 1.6.0.2
Cheatsheet for the Javascript Prototype library version 1.6.0.2 by kan...
pdf document
From:
DejanG
Arsenal-Man Utd 1:3(0:2) Highlights Goals 5.5.09. Champions League Sem
park,ronaldo(2),van persie(pen) first game man utd won 1:0 o'shea...
flv video
From:
ManUTD
Citroen C3 XTR 1.6 0-100 km/h
I was bored. 0-100km/h 9,9s
flv video
From:
koled
Alfa Romeo 145 (1.6 TS) 0-100 km/h - 10 vteřin
Zkouška zrychlení 0-100 km/h - Alfa Romeo 145 (1.6 Twin Spark, 88 kW...
flv video
From:
koled
08-11-16 Recreativo 0-2 Barcelona Messi 0-1
Recreativo:Barcelona LaLiga Messi 0-1 0-2 Messi Leo Lionel Eto Alves R...
flv video
From:
FCBarcelon...
2008 Citroen C3 1.6 Hdi 0-100 km/h
2008 Citroen C3 1.6 Hdi 0-100 km/h
flv video
From:
koled
Citroen C3 1.6 hdi 0-141
Citroen C3 1.6 hdi 0-141
flv video
From:
koled
QuickPwn Jailbreak 2.0/2.0.1/2.0.2 iPhone + 3G & iPod Touch Faster
***UPDTAE*** I have updated the version of QuickPwn to support 2.0, 2....
flv video
From:
undergroun...
Kathy Griffin part 2 Jimmy Kimmel Live 1-6-09
Kathy Griffin part 2 Jimmy Kimmel Live 1-6-09
flv video
From:
sintetik
Audi A4 1.6 Stock 0-100
A4 1.6 2002 102hp ESP off
flv video
From:
koled
2001 AUDİ A3 8L 1.6 AKL 0-130
AUDİ A3 8L ACCELERATİON 1.6 KONYA MERAM YENİ YOL TURKEY KAZA ANI AC...
flv video
From:
koled
Fiat Bravo 1.6 16v
Test Fiat Bravo 1.6 16v. Accelerazione 0-100. Acceleration 0-100 km/h ...
flv video
From:
koled
IFK Göteborg vs Djurgården (6-0) Alla Mål & Full Highlights - A
3'[1 - 0]S. Selakovic 6'[2 - 0]R. Söder 28'[3 - 0]T....
flv video
From:
FCBarcelon...
Middlesbrough vs Manchester United 0-2 Goals & Highlights
http://thekingbay.blogspot.com/ 2.5.09 2nd May 2009 Manchester Unite...
flv video
From:
ManUTD
Middlesbrough vs Manchester United 0-2 Goals & Highlights
http://thekingbay.blogspot.com/ 2.05.09 2nd May 2009 Manchester Unit...
flv video
From:
ManUTD
Wigan 0-2 Manchester United Cristiano Ronaldo Free Kick 35 Yards Fifa0
Wigan 0-2 Manchester United Cristiano Ronaldo Free Kick 35 Yards Fifa0...
flv video
From:
ManUTD
szczyrk godziszka audi 1.6 Tdiesel wycisk salmopol
wiatm audi 90 orginal 2.3E teraz silniczek SB 1.6 TD z 80 b3...skrzyni...
flv video
From:
koled
Middlesbrough vs Manchester United 0-2 Goals & Highlights
http://thekingbay.blogspot.com/ 2.5.09 2nd May 2009 Manchester Unite...
flv video
From:
ManUTD
Cadillac Seville 1980 6.0
Cadillac Seville 1980 6.0 L. Rarissima Cadillac Svizzera 6 litri di c...
flv video
From:
koled
Пламен Марков веднага след загубата о
http://4orba.tk Това е интервю на Пламен Марк...
flv video
From:
ManUTD
show more
© 2009 Fliiby LLC
About
|
Account
|
TOP
|
Latest
|
Blog
|
Shop
|
T.O.S
|
Help
|
Contact Us