sans-serif   serif

«

Array.each

Calls a function for each element in the array. Official MooTools Documentation

Articles using Array.each

MooTools For Beginners Part 7 – Creating Flexible Classes Using Options, Events, and Event Management

January 27, 2010

Last time we compartmentalized some code into a nice little MooTools Class called BouncyMenu that we can use anywhere. However, there are some HUGE improvements to be made. In this article we’ll be talking about how to make your MooTools Class flexible by using Implements, Options, and Events. We’ll also talk about managing events added to elements and some discussion about binding. If you still consider yourself a beginner, understanding this article should be a big deal. Once you master Class your javascript will never be the same.

Read More »

MooTools for Beginners Part 5 – Native Extensions

January 14, 2010

In Part 4 we looked at the myriad ways to select elements in the dom. Well, today we are ignoring the dom altogether. Aaron Newton once said that “MooTools aims to make JavaScript your playground [not just the DOM].” MooTools extends a lot of JavaScript natives, like Functions, Strings, Numbers, etc. [...]

Read More »

Basic AJAX and JSON Requests Using MooTools’ Request.HTML and Request.JSON

January 2, 2010

The best designs aren’t noticed. When you walk through an airport and get exactly where you intend to go, you don’t realize and attribute it to an excellent way-finding design. Such is the case with the web.

Ajax and JSON requests can subtly enhance the usability of a site where the user doesn’t notice the site “thinking” as much as all the page loads of yesteryear. Try the search on this site to see what I mean. After going through this tutorial you’ll have a solid foundation to use this powerful feature of the web with mootools.

Read More »

MooTools for Beginners Part 1 – The Basics

December 29, 2009

This is basic tutorial to help get you started with mootools. We’ll be manipulating elements, adding and removing event listeners, and playing with magic.

Read More »