JavaScript
  Home arrow JavaScript arrow Page 4 - Introducing MooTools and MooFX
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Introducing MooTools and MooFX
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 5
    2007-06-05

    Table of Contents:
  • Introducing MooTools and MooFX
  • MooTools Modules
  • More MooTools Modules
  • MooFX2 Modules

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Introducing MooTools and MooFX - MooFX2 Modules


    (Page 4 of 4 )

    The MooFX library has its very own mini site, distinct from the main MooTools site, which gives you information and download links for the library, showcased in the excellent accordion effect. The reason for the additional site seems to be because a version of the effects library is available for use with the Prototype JavaScript library, where the methods and syntax for using the different effects has been changed to work with Prototype instead of MooTools. MooFX for MooTools can be downloaded from the main MooTools site, and you have full control over which of the effects you want to obtain. With MooFX for Prototype however, you get the whole package or nothing.

    The effects module is a series of components that provide animation in the form of scrolling, or sliding elements and classes that make it easy to target the CSS and style properties of any DOM element or series of elements. The Fx.Base module is the core module of the Effects component and provides the basic animation logic used by the other components; it is a requirement for using any of the other effects.

    An Fx.CSS component is used internally by some of the other effects components (such as Fx.Style, Fx.Styles and Fx.Elements) to adjust a CSS property on a single element or collection of elements or any number of CSS properties on any number of elements. It is something that you need not concern yourself with, other than including it if necessary in the <head> of your documents.

    The Fx.Element component is used to target any element or selection of elements for transitional effects such as fading opacity and the like. Whereas the Scroller Plugin component allows you to scroll the window under certain conditions, the Fx.Scroll component provides a class for scrolling any DOM element and gives you a set of properties to adjust to achieve the desired result. Similarly, the Fx.Slider component provides the class and properties required to create an element that smoothly slides horizontally or vertically under certain circumstances.

    Conclusion

    While other some other JavaScript libraries, like the YUI for example, provide custom, pre-built solutions that are easily implemented and controlled, MooTools (and MooFX) act more like programming languages in their own right, giving you a set of objects, classes and properties as an entire framework within which you create your own solutions and implementations, a little like the .NET framework for example. While this makes it harder for beginners and novices to get to grips with (something compounded by the lack of documentation and sparse example code), it does give the more experienced JavaScript programmer a lot more scope and power, and can save huge amounts of time and troubleshooting when writing code for cross-browser web solutions.

    It is still an excellent resource for those that want to learn more about JavaScript and although the learning curve is steep, once you get your head around the object creation and class instantiation syntax the plateaus provides many exciting opportunities. For those of you interested in learning more about how to use MootTools and MooFX, I'll be writing a follow-up article soon that provides a step-by-step example of how to create something visually appealing and useful with these libraries.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · I hope you enjoy reading this introduction to MooTools and MooFX. It is really just...
     

    JAVASCRIPT ARTICLES

    - Comparing Fields and Customizing Error Messa...
    - Checking Numbers and File Extensions with jQ...
    - Validating Digits and Dates with jQuery`s Va...
    - Validating Ranges, Emails, and URLs with jQu...
    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek