JavaScript
  Home arrow JavaScript arrow Page 4 - Introducing MochiKit
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  
Dedicated Servers  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
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 MochiKit
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2007-06-04

    Table of Contents:
  • Introducing MochiKit
  • MochiKit Modules
  • MochiKit.Color and More
  • MochiKit.Selector and More

  • 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 MochiKit - MochiKit.Selector and More


    (Page 4 of 4 )

    MochiKit.Selector provides a set of utilities used to select elements by CSS selector syntax, so you can easily select elements based on attribute, attribute value, whether they are descendants of a particular element and many more items as well as standard selecting by tag name. This was originally ported in from Python, but has evolved since then.

    The MochiKit.Signal module makes easy work of event handling and replaces the browser's native event API completely. It allows you to connect to any type of event and takes care of deciding which event model to use, retrieving the event object and cleaning up afterwards.

    MochiKit.Style allows you to easily manipulate element styles. You can get and set styles, element dimensions and element positions, play with the opacity of elements and show and hide elements, all with easy function calls.

    MochiKit.Sortable lets you create lists that can be sorted via dragging and dropping the list items and is another module ported from Scriptaculous. The API for this module is very compact, with just three methods: one to create the sortable list which will normally be based on an unordered list, one to destroy the sortable object and one to serialize the object for sending to a server via XMLHttpRequest.

    The final module is MochiKit.Visual. It provides a huge range of visually appealing, engaging effects such as scrolling and sliding elements, elements that fade in and out of view, elements that shrink or grow and much more. It also provides the excellent CSS manipulation for rounding the corners of elements. This is all done with JavaScript and CSS. It works very well in different browsers and is probably the easiest part of MochiKit to use.

    Conclusion

    How useful you find MochiKit will depend on your knowledge and experience of JavaScript. Some of the more basic tools can be used very easily by almost anyone, but the library is very different from some available libraries in that it doesn't give you a bunch of pre-packaged solutions to common web design problems; it's not a template library. The people that will get the most out of MochiKit are people that are constantly finding that JavaScript just doesn't have the built-in tools that they need and is constantly falling short of their expectations. The documentation is pretty technical, with few paint-by-numbers examples, but there's no doubt that this is a very powerful library in capable hands.


    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.

       · Hi, hope you enjoy this introduction to MochiKit, one of the smallest javascript...
     

    JAVASCRIPT ARTICLES

    - Book Review: Learning the Yahoo! User Interf...
    - Dynamically Generate a Selection List in a R...
    - Intergrate DWR into Your Java Web Application
    - Detect Browser Compatibility with the Reques...
    - Using the EXT JS Date Picker Widget
    - Ajax Hack for Entering Information Without R...
    - EXT JS 2.1 Overview
    - Using the Style Object for Zebra Tables with...
    - Binary Searching
    - An Improved Approach to Building Zebra Tables
    - Assigning Background Colors Dynamically to Z...
    - Building Zebra Tables with CSS and JavaScript
    - JavaScript: Array Objects
    - A Closer Look at Smart Markers with Yahoo! M...
    - Using Polylines and Smart Markers with Yahoo...







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway