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

Chapter 4. The Core's Useful Utility Functions

In this chapter, we'll be investigating the MooTools Core component which contains a collection of useful utility/helper functions and properties that we can use to write less code and obtain information about the browser client.

In this chapter we shall:

  • Learn about browser properties that MooTools makes available to us, and how to use them to gain more data about our users

  • Explore the Core's utility functions in order to discover functions that will make writing JavaScript easier

So let's get on with it!

What is the Core?

The Core is a MooTools component (Core.js) that contains a plethora of useful functions that deal with common JavaScript tasks, such as checking if the objects are defined, and merging the objects into one.

The Core is split into two sub-components: Browser, which gives you a set of tools for acquiring information about the client accessing your scripts, and Core, which contains a mixture of helpful functions for dealing with...