Prototype 1.6.0.2 Cheat Sheet

A long awaited Prototype cheat sheet – a full reference to a bleeding edge 1.6.0.2 is finally here. I had no experience creating something like this before, so any bugs or suggestions are very much appreciated. Couple of notes about notations:
- Modules are sorted in a somewhat logical order – those commonly used are mostly in the left/center area, while deprecated/utility methods are all the way to the right
- Method can be recognized by parentheses following it (anything that doesn’t have ones is a property)
- Deprecated items are marked red and have NO parentheses/arguments specified
- Prototype extends quite few native objects’ prototypes with a set of convenient methods. In such cases there’s an explicit note about it next to a module name – i.g.
stripScripts()method from “String (String.prototype)” can be called as'foo'.stripScripts() - When a module is also a class, there’s a “(constructor)” note next to it – i.g. “Hash (constructor)” means that it should be called as
new Hash() - There are few bonus items (such as those from Prototype.Browser) which are not yet included in documentation
Download (55534 downloads) and Enjoy!
Update:
I have managed to choose the most retarded format for the cheat sheet – almost squared – which was impossible to print or navigate. Sincere apologies. There is an updated version at the same address which also fixes few other annoyances:
- Ajax.Responders is now a separate section
- Added missing Event.fire
- Added Prototype.BrowserFeatures.XPath
- Added simple “Dimensions/Offsets” diagram
- Minor rearrangements
Update 2:
Uploaded a Higher Contrast version (8344 downloads)
Seems to look much better when printed.
nickevin said on Jan 22, 2008 @ 18:08
#1Thx to share!
Venu said on Jan 22, 2008 @ 19:38
#2Keep up the good work.
seb said on Jan 23, 2008 @ 0:38
#4Great, it should be available on htpp://prototypejs.org
Bertrand Gorge said on Jan 23, 2008 @ 1:54
#5Would be nice to have it in A4 (european format). A cheat sheet that doesn’t fill the space somewhat defeats the purpose !
Thanks for the effort, though !
Rauan Maemirov said on Jan 23, 2008 @ 2:57
#6Hi! Nice work. But what about Event.fire()?
barabba said on Jan 23, 2008 @ 7:26
#8Thx !
But in A4 please !
louis w said on Jan 23, 2008 @ 10:06
#9Great job.
My only request would be that it’s made in 8.5 x 11 so people in us can print it out.
kangax (article author) said on Jan 23, 2008 @ 11:18
#10Fixed bunch of things (you could see them in “update” section of the post). Thanks for great tips, everyone!
su6z3r0 said on Jan 23, 2008 @ 12:18
#12Awesome! Thank you so much!!!
Steve Prior said on Jan 24, 2008 @ 20:31
#14When I print it (on 8.5×11 paper with an inkjet printer) most of the black on the page seems to be a dark gray so especially the smallest text is in pretty low contrast and the red text is pretty light. The diagram text in the lower right is much darker. I have pretty good eyesight, but it’s still pretty fine for me to read. Would it be possible to increase the contrast on all the text to make it pop a little bit more?
kangax (article author) said on Jan 24, 2008 @ 20:34
#15Steve,
Good point!
I’ll try to make a high-contrast (black/white) version as soon as a I get a chance.
Best,
kangax
James MacFarlane said on Jan 28, 2008 @ 9:05
#16I just printed it out 11 x 17 on a Xerod Docucolor. I would agree with Steve Prior. The print needs to be darker and the alternating background color needs to be darker as well.
This is a handy guide. Thanks for taking the time.
Robert said on Jan 28, 2008 @ 11:40
#17Keep up the good work guys!
imnotquitejack said on Jan 29, 2008 @ 14:33
#24Righteous cheatsheet, well done!
(just a heads up – your html is slightly busted. You have extra
tags in your li’s.)Rick DeNatale said on Jan 29, 2008 @ 16:15
#26Another vote for a more readable version, especially for folk like me with older eyes.
I’d love to have a version which is actually two US letter side pages in portrait format, which would be 2X in size.
Sangesh said on Jan 30, 2008 @ 7:28
#29great,
thankx for this
gabel said on Feb 5, 2008 @ 15:43
#37i’ve seperated it to a 2 page version that can be printed on a single A4 page or duplex for people that did not got eagle eyes ;)
A4 2 page version: http://gabel-art.de/prototype_cheatsheet_1.6.0.2_bw-duplex.pdf
hope that’s ok for kangax, if not just leave me a message and i’ll remove it
kangax (article author) said on Feb 5, 2008 @ 15:49
#38@gabel,
That’s great! Of course I don’t mind and thanks for the effort.
FLX said on Feb 11, 2008 @ 4:59
#39Thanks =D
Bufo said on Feb 16, 2008 @ 6:54
#40Just a tiny correction: Enumerable::each() is lacking the optional context parameter. Thanks alot for the sheet!
chazzuka said on May 5, 2008 @ 0:02
#45thank you for this :) handy cheatseet help alot while coding without internet connection
Avishai said on May 23, 2008 @ 7:41
#46Very cool, this is definitely a useful sheet to have!
Alexey Bass said on Jul 9, 2008 @ 13:11
#50Thanks a lot!
Vlad (Small Business Blog) said on Sep 2, 2008 @ 13:55
#52Thanks for an updated cheat-sheet version, still have problems looking at it, but feels a bit easier on the eyes.
Frédéric Klee said on Nov 5, 2008 @ 1:30
#53Good idea but in A4 please !
Angela Hayden said on Aug 27, 2009 @ 9:31
#125Thank you very much for this wonderful resource.
bali gendul said on Dec 30, 2010 @ 21:21
#135very nice info.. i like your site!!!
Mank said on Feb 13, 2011 @ 8:34
#136ok,, thanks..