Updated Sep 14th, 2012
Mootools

Reference

window.addEvent('domready', function);

window.scrollTo(x, y);

window.getSize(); // creates object with x and y

window.getScrollSize();

window.getScroll();

String.implement({ function_name: function});

var thing = new Class({})

Implements: [Options, Events]

this.setOptions(options)

initialize: function(name) {this.name = name}

Element.addEvents({mouseenter: function, mouseleave:});

Element.setStyle('display', 'none');

Element.getPosition(); // x and y

Element.getCoordinates(); // top, left, width, height, right, bottom

Element.fireEvent('test');

Array.each(function);

Array.pick(); // get first in array

Number.times(function);

Function.periodical(1000, this);

Function.bind()

Element.grab(el, where); // opposite of inject

Element.adopt(el, [others]); // grab a bunch of objects to the bottom

Element.inject(el, where); // where: top, bottom, after, before

Element.inject(document.body,"bottom");

new Element('div', {id: 'something'})

Element.setStyles({});

Element.get('data-something');

Element.getParent('.lightbox_js');

Element.addClass('')

$defined()

e.page.x // mouse x

new Fx.Tween(element, [, options]); // 

Element.tween('color', '#fff');
Element.tween('height', [20, 200]);

new Request.JSON()

request.send('save=username&name=john');

request.post(); // like setting method to post, and data to whatever

request.put();

request.delete();


testArray: {  testFunc: function() { this.close(); } }

testArray['testFunc'].call(this); // arrays in function can not be binded to so use call


Object.toQueryString() // Actually use the word 'Object'

var bg_fx = new Fx.Tween(this.pop_bg_el, {
    property : 'opacity'
});

bg_fx.start(0).chain(
    function() {
        this.pop_bg_el.destroy();   
    }.bind(this));

instanceOf(object, Wall)

Ajax

url

format

emulation // sends put and delete rails style via postdata named "_method"

evalResponse // runs any javascript code in response

onRequest

onComplete

onCancel

onSuccess(responseText, responseXML)

onSuccess(responseJSON, responseText) // responseText is json response as a string

onFailure(request)

onError

onException(headerName, value)

onTimeout()

Events

mouseover

mouseenter

mouseleave 

drag

new Element

href

'class'

html

styles: {}

tween: {}

Tween

duration

onComplete

Properties

text

html

tag

This

The object to which the current method belongs.

Error

Uncaught TypeError: Object 0 has no method 'camelCase' - I spelled "property" "propery" in fx tween