Book Image

MooTools 1.2 Beginner's Guide

Book Image

MooTools 1.2 Beginner's Guide

Overview of this book

MooTools is a simple-to-use JavaScript library, ideal for people with basic JavaScript skills who want to elevate their web applications to a superior level. If you're a newcomer to MooTools looking to build dynamic, rich, and user-interactive web site applications this beginner's guide with its easy-to-follow step-by-step instructions is all you need to rapidly get to grips with MooTools.
Table of Contents (14 chapters)
MooTools 1.2 Beginner's Guide
Credits
About the Authors
About the Reviewer
Preface

Summary


In this chapter we learned about:

  • The concept of unobtrusive JavaScript. We did this by creating an "obtrusive" example and then reworked into an unobtrusive and more elegant solution.

  • The concept of classes. We created our own class, explored it, and even extended it with another class. This gives us the basis of the structure and design of the MooTools framework.

  • We learned the basics of using a class in MooTools. We used the Fx.Tween and Chain class to animate a blue box.

  • Chainability: We discovered how we can chain methods one after another and execute them in sequence.

Though we covered a lot of theories in this chapter, it was necessary to give us a solid foundation for the next chapters and to give us a full understanding of how to write good MooTools code. Anyone can hack and dice with MooTools, but you now possess the knowledge of writing MooTools code that you can be proud of.

Now that we have some understanding of how to write JavaScript with MooTools, we are going to move right...