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


Congratulations, you're now a professional Ajax developer! We covered plenty of things in this chapter.

Specifically, we covered:

  • Creating a Request object: We learned how to create an Ajax Request object in MooTools, as well as the options and methods available to us for working with Request objects.

  • Requesting data: We discovered how to request data from the web server. In the process we explored the Request.HTML and Request.JSON classes, which make working with HTML and JSON data a breeze.

  • Sending data: With the help of PHP, we witnessed just how powerful Ajax is by sending data to a server-side script that processed our data and sent it back to us, asynchronously. This allowed us to create an uninterrupted user experience that instantly updated the web page upon a user event.

  • Setting and getting HTTP headers: We learned that HTTP requests and responses have attached meta information that tell us about the server and the data we're requesting. They're called HTTP headers and we used...