Prototype.js cheat sheet                                                                                                  ...
Upcoming SlideShare
Loading in …5
×

this is ruby test

668 views

Published on

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
668
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
4
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

this is ruby test

  1. 1. Prototype.js cheat sheet 1.6.0.2 designed by thinkweb2.com Utility Methods Prototype Event Element (constructor) Enumerable document absolutize ( element ) element ( event ) $ ( id | element ) K ( argument ) all ( iterator ) fire ( eventName[, memo] ) extend ( event ) addClassName ( element, className ) $$ ( cssRule ) emptyFunction ( ) any ( iterator ) observe ( eventName, handler ) findElement ( event, tagName ) addMethods ( [methods] ) $A ( iterable ) collect ( iterator ) stopObserving ( eventName[, handler] ) fire ( element, eventName[, memo] ) adjacent ( element[, selectors... ] ) $F ( element ) detect ( iterator ) Prototype.Browser isLeftClick ( event ) ancestors ( element ) $H ( [obj] ) each ( iterator ) document.viewport IE observe ( element, eventName, handler ) childElements ( element ) $R ( start, end[, exclusive = false] ) eachSlice ( size, iterator ) getDimensions ( ) Opera pointerX ( event ) classNames $w ( String ) entries ( ) WebKit getHeight ( ) pointerY ( event ) cleanWhitespace ( element ) Try.these ( Function... ) find ( iterator ) Gecko getScrollOffsets ( ) stop ( event ) clonePosition ( element, source[, options] ) document.getElementsByClassName findAll ( iterator ) MobileSafari getWidth ( ) stopObserving ( element[, eventName[, handler]] ) cumulativeOffset ( element ) grep ( regex, iterator ) cumulativeScrollOffset ( element ) inGroupsOf ( size ) Prototype.BrowserFeatures Class String (String.prototype) descendantOf ( element, ancestor ) Form include ( object ) XPath addMethods ( methods ) blank ( ) descendants ( element ) inject ( accumulator, iterator ) disable ( formElement ) create ( [superclass][, methods... ]) camelize ( ) down ( element[, cssRule ][, index = 0] ) invoke ( methodName[, args ] ) enable ( formElement ) capitalize ( ) RegExp empty ( element ) map ( iterator ) findFirstElement ( formElement ) dasherize ( ) escape ( string ) Position extend ( element ) max ( iterator ) focusFirstElement ( formElement ) empty ( ) absolutize fire ( eventName[, memo ] ) member ( object ) getElements ( formElement ) endsWith ( substring ) clone RegExp (RegExp.prototype) firstDescendant ( element ) min ( iterator ) getInputs ( formElement[, type[, name]] ) escapeHTML ( ) cumulativeOffset getDimensions ( element ) match ( string ) partition ( iterator ) request ( [options] ) evalJSON ( [sanitize] ) offsetParent getElementsByClassName pluck ( propertyName ) reset ( formElement ) evalScripts ( ) overlap getElementsBySelector reject ( iterator ) serialize ( formElement[, getHash = false] ) extractScripts ( ) PeriodicalExecuter (constructor) page getHeight ( element ) select ( iterator ) serializeElements ( elements[, getHash = false] ) gsub ( pattern, replacement ) positionedOffset stop ( event ) getOffsetParent ( element ) size ( ) include ( substring ) prepare getStyle ( element, property ) sortBy ( iterator ) Form.Element inspect ( [useDoubleQuotes] ) realOffset getWidth ( element ) ObjectRange (constructor) toArray ( ) activate ( element ) interpolate ( object[, pattern] ) relativize hasClassName ( element, className ) zip ( Sequence..., iterator ) include ( value ) clear ( element ) isJSON ( ) within hide ( element ) disable ( element ) parseQuery ( [separator = &] ) withinIncludingScrolloffsets identify ( element ) Hash (constructor) enable ( element ) scan ( pattern, iterator ) Template (constructor) immediateDescendants focus ( element ) clone ( ) startsWith ( substring ) evaluate ( object ) Insertion insert ( element, {position: content} ) getValue ( element ) each ( iterator ) strip ( ) inspect ( element ) After present ( element ) stripScripts ( ) get ( key ) TimedObserver makeClipping ( element ) Before stripTags ( ) select ( element ) inspect ( ) new Form.Element.Observer ( element, freq, callback ) makePositioned ( element ) Bottom sub ( pattern, replacement[, count = 1] ) serialize ( element ) keys ( ) new Form.Observer ( element, freq, callback ) Top match ( element, selector ) succ ( ) setValue ( element, value ) merge ( object ) next ( element[, cssRule][, index = 0] ) times ( count ) set ( key, value ) nextSiblings ( element ) toArray ( ) Ajax toJSON ( ) observe ( element, eventName, handler ) toJSON ( ) toObject ( ) new Ajax.PeriodicalUpdater ( container, url[, options] ) Offsets/Dimensions positionedOffset ( element ) toQueryParams ( [separator = &] ) toQueryString ( ) new Ajax.Request ( url[, options] ) previous ( element[, cssRule][, index = 0] ) truncate ( [length = 30[, suffix = ‘...’]] ) unset ( key ) new Ajax.Updater ( container, url[, options] ) var dOsets = document.viewport.getScrollOsets(); previousSiblings ( element ) underscore ( ) update ( object ) readAttribute ( element, attribute ) unescapeHTML ( ) values ( ) Ajax.Responders recursivelyCollect ( element, property ) unfilterJSON ( [filter = Prototype.JSONFilter] ) register ( responder ) relativize ( element ) dOsets.top Object unregister ( responder ) Number (Number.prototype) remove ( element ) clone ( obj ) removeClassName ( element, className ) abs ( ) extend ( dest, src ) replace ( element[, html] ) Array (Array.prototype) ceil ( ) inspect ( obj ) scrollTo ( element ) floor ( ) clear ( ) isArray ( obj ) viewportOset.top round ( ) select ( element, selector... ) clone ( ) isElement ( obj ) succ ( ) cumulativeOset.top setOpacity ( element, opacity ) compact ( ) isFunction ( obj ) dOsets.left times ( iterator ) setStyle ( element, styles ) each ( iterator ) isHash ( obj ) toColorPart ( ) show ( element ) first ( ) isNumber ( obj ) toJSON ( ) fd flatten ( ) siblings ( element ) isString ( obj ) toPaddedString ( length[, radix] ) from ( iterable ) stopObserving ( element[, eventName[, handler]] ) document.viewport.getHeight() isUndefined ( obj ) indexOf ( value ) viewportOset.left toggle ( element ) keys ( obj ) Function (Function.prototype) inspect ( ) toggleClassName ( element, className ) toHTML ( obj ) last ( ) undoClipping ( element ) argumentNames ( ) Element toJSON ( obj ) cumulativeOset.left reduce ( ) undoPositioned ( element ) bind ( thisObj[, arg...] ) toQueryString ( obj ) reverse ( [inline = true] ) up ( element[, cssRule][, index = 0] ) bindAsEventListener ( thisObj[, arg...] ) values ( obj ) size ( ) update ( element[, newContent] ) curry ( arg... ) toArray ( ) viewportOffset ( element ) defer ( arg... ) document.viewport.getWidth() Date (Date.prototype) toJSON ( ) visible ( element ) delay ( seconds[, arg...] ) uniq ( ) toJSON ( ) wrap ( element, wrapper[, attributes] ) methodize ( ) without ( value... ) writeAttribute ( element, attribute[, value = true] ) wrap ( wrapperFunction[, arg...] )

×