Table of Contents

FAQ

Have a question not answered here? Send us a note.

Wait, I'm looking for the MooTools tutorial - what's all this stuff?

These pages are dedicated to our (CNET's) MooTools extensions. You can download these and use them, and these pages might help you get started.

The MooTools tutorial (that we wrote) is now at its own fancy url: www.mootorial.com

How do I use this tutorial?

The tutorials here are meant to be read and, when possible, the code examples are executable. This means that when you see a code example like this:

alert('hi there!');
execute this code

You can click the "execute this code" link and see what it does. We highly recommend using Firefox and Firebug but if you can't or don't, it should still work fine.

Whenever you execute a code example, the code will be displayed in the debugging console (Firebug or a less powerful one you'll see if you don't have Firebug installed). After the example is displayed in the debugger, it is executed in your browser and whatever is returned will be echoed in the debugger. For example:

function test(value){
  return value;
}
test("blah");
execute this code

Will first echo in the console the code above, followed by "blah".

Executing these code examples should give you a better idea of how the code works.

Can I change things on these pages?

Yes! It's a wiki! If you find a typo or a spelling error or something that's just plain wrong, fix it! Please don't do anything you wouldn't want others doing on your own site (no Spam!), but other than that, hack at it.

I want to make a change and add a code example, what do I do?

This is a little tricky. Putting code into the page is a little dangerous so you have to be sure you aren't doing anything that will hurt the visitor's browser or break. You should test your examples before you add them. We review all the submissions you make, and if we see anything fishy we'll remove it.

What is the license for the CNET libaries?

See: http://clientside.cnet.com/wiki/cnet-libraries/#license

What version of MooTools are supported?

We are using version 1.2.

Where do I report bugs?

Use our contact form to drop us an email.

How do I download these libraries?

You can download the libraries on our fancy download page: http://clientside.cnet.com/js

Our libraries are hosted on Google's code application in an SVN repository. More details here: http://clientside.cnet.com/wiki/cnet-libraries/00-downloads

Can I contribute?

Not directly, but we welcome suggestions and code examples. If you have something you think we'll like, let us know. If you think something we've written should work differently, send us a note and we can talk about it.

Why aren't these things in Mootools?

Valerio, the principal author of Mootools, carefully controls what goes in the actual distribution to keep it lean and tidy. A lot of what we write, though it's generic, is still a little more specific than what Mootools is trying to do.

One of the things we like about Mootools is how extendable it is, and we make use of that in our work here. The fact that these files aren't in Mootools doesn't really say anything bad about our code or Mootools; in fact, it demonstrates the power and flexibility of Mootools.

I can't get my code to work, can you help me?

Maybe. If you think you've found a bug in our code, we'll definitely work on that. If you can't figure accordion out or how to use Ajax, the Mootools forums and the Mootorial are better places to start.