Mootools 1.2 Beginners Guide LITE: Getting started


Mootools 1.2 Beginners Guide LITE: Getting started
eBook: $9.99
Formats: PDF, PacktLib, ePub and Mobi formats
$8.49
save 15%!
Print + free eBook + free PacktLib access to the book: $29.98    Print cover: $19.99
$19.99
save 33%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Specifically chosen content to get you started with Mootools as quickly as possible
  • Packed with step-by-step examples to get you doing and learning straight away

 

 

Book Details

Language : English
Paperback : 102 pages [ mm x mm ]
Release Date : May 2011
ISBN : 1849516243
ISBN 13 : 9781849516242
Author(s) : Jacob Gube, Garrick Cheung
Topics and Technologies : All Books, Web Development, Lite Editions

Table of Contents

Preface
Chapter 1: Writing JavaScript with MooTools
Chapter 2: Selecting DOM Elements
Chapter 3: Bringing Web Pages to Life with Animation
Index
  • Chapter 1: Writing JavaScript with MooTools
    • Writing unobtrusive JavaScript with MooTools
      • An "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
      • Removing our inline event handlers
      • Using the DOM to handle events
    • Creating MooTools classes
      • What the heck is a class?
      • Real-world analogy
      • Creating a MooTools class
        • The Implements property
    • Time for action – creating an instance of Dog
    • 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
    • Class inheritance
  • 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 methods
    • Isn't MooTools classy?
    • Chainability
  • Summary
    • Chapter 2: 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
        • $() versus document.getElementById()
        • Selecting multiple sets of elements
        • Common errors with the dollar and dollars functions
      • Selection using pseudo-classes
        • Pseudo-class example: Zebra striping a table
      • Time for action – using pseudo-classes to zebra stripe a table
        • Other pseudo-class selectors
      • Working with attribute selectors
        • Attribute selector operators
        • Attribute selector example: Styling different types of links
      • Time for action – using = attribute selector
      • Time for action – using != attribute selector
      • Time for action – using ^= attribute selector
      • Time for action – using $= attribute selector
        • Attribute selector case sensitivity
      • DOM selection makes unobtrusive JavaScript do-able
      • Summary
      • Chapter 3: Bringing Web Pages to Life with Animation
        • MooTools' Fx class
          • Basic syntax
          • Fx options
        • Animating a CSS property with Fx.Tween
        • Time for action - creating a hide/show FAQ page
          • Tweening a single CSS property using the tween() method
        • Time for action – toggling the visibility of a div
          • Fading elements
        • Time for action - fading an image in and out
          • Highlighting elements
        • Time for action - indicating blank form fields that are required
        • Animating multiple CSS properties with Fx.Morph
        • Time for action - enlarging an image
          • Using the morph() shortcut method
        • Time for action - experimenting with morph
        • Other Fx methods
          • Starting an effect
          • Setting properties immediately
          • Cancelling a transition
          • Pausing effect
          • Resuming a paused effect
        • Summary

        Jacob Gube

        Jacob Gube is a massive MooTools developer. He is the Founder and Chief Editor of Six Revisions, a website dedicated to web developers and web designers. He's also written for other popular web publications such as Read Write Web and Smashing Magazine discussing web technologies and development. A web professional for 8 years, Jacob is an in-house web developer specializing in distance-learning education and web accessibility, using PHP, MooTools, and jQuery to get the job done.


        Garrick Cheung

        Garrick Cheung is a designer-developer and a member of the official Mootools Community team. He's currently a Senior Technical Producer for CBS Interactive developing for sites such as GameSpot.com, TV.com and MP3.com. He's passionate about code optimization and loves to teach and develop in MooTools. Garrick also writes about code and development at his site, http://www.garrickcheung.com.

        Sorry, we don't have any reviews for this title yet.

        Submit Errata

        Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

        Sorry, there are currently no downloads available for this title.

        Compare Books

        See which product is right for you

        Mootools 1.2 Beginners Guide LITE: Getting started MooTools 1.2 Beginner's Guide

        Lite Edition

        Learn more

        Full Edition

        Learn more
        Specifically chosen content to get you started with Mootools as quickly as possible
        Packed with step-by-step examples to get you doing and learning straight away
        eBook available as PDF downloads
        eBook available as ePub downloads
        Available on PacktLib
        Packed with examples for all the topics you need to get developing with Mootools
        Make your web applications more dynamic and user-interactive with AJAX
        Price £12.99
        £24.99

        Frequently bought together

        Mootools 1.2 Beginners Guide LITE: Getting started +    Laravel Application Development Cookbook =
        50% Off
        the second eBook
        Price for both: £17.94

        Buy both these recommended eBooks together and get 50% off the cheapest eBook.

        What you will learn from this book

        • How to write JavaScript with Mootools
        • Selecting and controlling web page elements
        • Bringing web pages to life with animation

        In Detail

        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.

        Do not discuss the cut down nature of this book. Focus only on what the book is, not where it came from.
        If you're a newcomer to MooTools and want to take your first steps, this is the book for you. With easy-to-follow step-by-step instructions, you’ll find what you need to get you going, and comfortable with how you get there. The information in this book has been specifically chosen to get you into the world of Web 2.0 as easily as possible.

        To find out more about upgrading to the full edition, visit www.packtpub.com/lite-editions and log into your account for offers and help. If you don’t have an account on PacktPub.com, visit today and set one up!

        Approach

        This is a Packt Beginner's Guide, which means it is packed with clear step-by-step instructions for performing the most useful tasks in MooTools. You will learn by doing and you will start learning immediately.

        Who this book is for

        This book is perfect for MooTools newcomers. You do not require any familiarity with MooTools whatsoever, only a willingness to learn. Basic knowledge of JavaScript syntax and concepts is the only requirement. This book will allow you to grasp the basics of MooTools so that you will be well on the way to creating exciting, customizable web pages and applications.

        Code Download and Errata
        Packt Anytime, Anywhere
        Register Books
        Print Upgrades
        eBook Downloads
        Video Support
        Contact Us
        Awards Voting Nominations Previous Winners
        Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
        Resources
        Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software