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 (36047 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 (6636 downloads)
Seems to look much better when printed.
nickevin said:
#Thx to share!
Venu said:
#Keep up the good work.
seb said:
#Great, it should be available on htpp://prototypejs.org
Bertrand Gorge said:
#Would 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:
#Hi! Nice work. But what about Event.fire()?
barabba said:
#Thx !
But in A4 please !
louis w said:
#Great 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:
#Fixed bunch of things (you could see them in "update" section of the post). Thanks for great tips, everyone!
su6z3r0 said:
#Awesome! Thank you so much!!!
Steve Prior said:
#When I print it (on 8.5x11 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:
#Steve,
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:
#I 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:
#Keep up the good work guys!
imnotquitejack said:
#Righteous cheatsheet, well done!
(just a heads up - your html is slightly busted. You have extra
tags in your li's.)Rick DeNatale said:
#Another 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:
#great,
thankx for this
gabel said:
#i'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:
#@gabel,
That's great! Of course I don't mind and thanks for the effort.
FLX said:
#Thanks =D
Bufo said:
#Just a tiny correction: Enumerable::each() is lacking the optional context parameter. Thanks alot for the sheet!
chazzuka said:
#thank you for this :) handy cheatseet help alot while coding without internet connection
Avishai said:
#Very cool, this is definitely a useful sheet to have!
Alexey Bass said:
#Thanks a lot!
Vlad (Small Business Blog) said:
#Thanks 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:
#Good idea but in A4 please !
zibex said:
#PARfGx hi! nice site!
Иван said:
#Анальный сексДовольно интересный сайт о общения, не имет ничего общего с известнами сервисами .
Сравнительно молодой проект но имеет уже три миллиона посетителей и
различные услуги для клиентов, как платные, так и бесплатные. Так же необходимо сказать что сайт имеет очень |удобный| понятный] интерфейс! Анальный секс.
Angela Hayden said:
#Thank you very much for this wonderful resource.