Limit search to available items
Book Cover
E-book
Author Gube, Jacob

Title MooTools 1.2 Beginner's Guide
Published Birmingham : Packt Pub., 2009

Copies

Description 1 online resource (467 pages)
Contents MooTools 1.2 Beginner's Guide; MooTools 1.2 Beginner's Guide; Credits; About the Authors; About the Reviewer; Preface; What this book covers; What you need for this book; Who this book is for; Conventions; Reader feedback; Customer support; Errata; Piracy; Questions; 1. MooTools and Me; What is MooTools?; Why use MooTools?; The advantages of using MooTools; Writing terse and elegant code; Extending native JavaScript; Cross-browser compatibility; Working with the Document Object Model; The advantage of using open-source projects; Downloading and installing MooTools
Time for action-downloading and installing the MooTools CoreWhat just happened?; Different MooTools downloads; The domready event listener; Rolling your own MooTools; MooTools Core; Time for action-exploring the MooTools Core Builder; What just happened?; Have a go hero -- explore the MooTools Core Builder output; MooTools More; Time for action-exploring the MooTools More Builder; What just happened?; The API concept; MooTools resources; MooTools Docs; MooTools Users Google groups; mooforum; The MooTorial; Summary; 2. Writing JavaScript with MooTools
Writing unobtrusive JavaScript with MooToolsAn ""obtrusive"" JavaScript example; What's so bad about it?; Don't repeat it if you don't have to; It'll be hard to maintain; It's a bad practice to have functionality in your content structure; Time for action-rewriting our script unobtrusively; What just happened?; Removing our inline event handlers; Using the DOM to handle events; Pop quiz -- rewriting our script unobstrusively; Creating MooTools classes; What the heck is a class?; Real-world analogy; Creating a MooTools class; The Implements property; The options property
The initialize methodOur own Dog class methods: .bark() and .sit(); Time for action-creating an instance of Dog; What just happened?; Have a go hero -- use the .sit() class method; Time for action-giving our class instance some custom options; Time for action-determining the value of our options; Extending classes; Time for action-extending the ShowDog class with the Dog class; What just happened?; Class inheritance; Have a go hero -- doing more with the thing; Using MooTools classes; The concept of chainability; The Chain class; A Chain example; A look ahead: Chaining Fx .Tween
Time for action-create a chain of Fx. Tween methodsWhat just happened?; Isn't MooTools classy?; Chainability; Have a go hero -- doing more with chaining Fx. Tween methods; Summary; 3. Selecting DOM Elements; MooTools and CSS selectors; Working with the () and () functions; The () dollar function; The () dollars function; When to use which; Time for action-selecting an element with the dollar function; Time for action-selecting elements with the dollars function; Time for action-selecting multiple sets of elements with the dollars function; What just happened?
Summary Learn how to create dynamic, interactive, and responsive cross-browser web applications using this popular JavaScript framework
Notes () versus document.getElementById()
Print version record
Subject JavaScript (Computer program language)
JavaScript (Computer program language)
Form Electronic book
Author Cheung, Garrick
ISBN 9781847194596
1847194591