The MooTorial http://www.mootorial.com/wiki/ Wed, 24 Dec 2008 02:28:03 -0700 FeedCreator 1.7.2-ppt DokuWiki http://www.mootorial.com/wiki/lib/images/favicon.ico The MooTorial http://www.mootorial.com/wiki/ Functions - call or apply doesn't return a function, they execute it immediately, no need to ... http://www.mootorial.com/wiki/mootorial/03-native/01-function?rev=1227688190&do=diff1227688190 Here is the documentation for Function.js. Function.create .create automatically wraps the function into another one with the defined set of functionalities, therefore shortens your code. It's used throughout mootools itself, as the foundation for .pass, .bind, .delay, .periodical. brian mootorial:03-native Wed, 26 Nov 2008 01:29:50 -0700 Fx.Tween http://www.mootorial.com/wiki/mootorial/06-fx/01-fx.tween?rev=1226596211&do=diff1226596211 Here is the documentation for Fx.Tween.js. This is where MooTools really shines. Smoothly modifying the properties of an element is super simple. You have a couple of options on how to do it, once again, and they each have trade offs. I'll start with the method of creating an object for the effect: Aaron Newton mootorial:06-fx Thu, 13 Nov 2008 10:10:11 -0700 Selectors http://www.mootorial.com/wiki/mootorial/05-utilities/00-selectors?rev=1225731376&do=diff1225731376 Selectors let you find elements in the DOM using CSS paths. Note that $$ is defined in Element.js, but it only lets you get elements by tag name. $$ $$ is defined in Element.js, but when you include Element.Selectors.js, it becomes much more useful; you'll use it a LOT. Aaron Newton mootorial:05-utilities Mon, 03 Nov 2008 09:56:16 -0700 Getting Started: What is MooTools? http://www.mootorial.com/wiki/mootorial/00-whatisit?rev=1225383513&do=diff1225383513 MooTools is a lightweight abstraction layer between the browser and the code you write (this is really the definition of nearly every js framework out there - Prototype, Dojo, jQuery, YUI, etc). It offers more functionality and richer tools for writing javascript, taking what has historically been painful and fraught with buggy environments (the browsers) and presenting you with a much more reliable environment. By adding it to your environment (i.e. including the script in your page) you are ab… Aaron Newton mootorial Thu, 30 Oct 2008 10:18:33 -0700 Assets http://www.mootorial.com/wiki/mootorial/08-plugins/02-utilityplugins/03-assets?rev=1222970513&do=diff1222970513 Assets.js provides on-the-fly loading of images, css, and javascript files. Here is the documentation for Assets.js. Assets.javascript Returns a new script tag with the source and (optional) properties you specify. *Note* that it inserts the tag into the DOM (in the head) for you. Aaron Newton mootorial:08-plugins:02-utilityplugins Thu, 02 Oct 2008 12:01:53 -0700 When to Use Classes http://www.mootorial.com/wiki/mootorial/10-whentowriteclasses?rev=1221771311&do=diff1221771311 Some of this is based on a blog post I made on clientcide. Previously I had divided my code into two types: what I called "implementation" code and code designed to be reused. The implementation code (to me) was the code you had to write for a specific page and, for that reason, wasn't reusable. It references specific dom elements and is tailored to the user experience. Reusable code was the stuff that was generic. Slideshows, date pickers, etc. Aaron Newton mootorial Thu, 18 Sep 2008 14:55:11 -0700