JavaScript
  Home arrow JavaScript arrow Page 2 - 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  
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 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 Modules


    (Page 2 of 4 )

    MochiKit is comprised of 15 discrete modules that cater for a wide range of effects and functionality. Let's take a look at each of the modules in more detail.

    First up is MochiKit.Async, the module that manages all of your AJAX and remote data collection tasks and is based on Twisted, an event driven networking framework written in Python. It handles asynchronous XML HTTP requests, XHR and JSON.

    Next is the MochKit.Base module, which forms the foundation of the MochiKit suite and is a dependent of most of the other modules. Much of the code it contains is stuff that the author feels should be standard in native JavaScript but isn't and a lot of the concepts found here have been inspired by more powerful programming languages like Python and Java, or other JavaScript libraries such as Scriptaculous.

    Following this is MochiKit.DOM which provides an easy to use DOM manipulation API based largely on part of a powerful Python web development toolkit. Its primary purpose is to allow for the easy creation and insertion of DOM node trees with minimal coding. It provides plenty of convenience methods for converting elements, removing and replacing elements and setting class names and attributes among other things.

    MochiKit.DragAndDrop adds the ability to quickly and easily create richer interactive interfaces by creating elements that can be dragged and dropped on your pages. It was adapted from the drag and drop implementation found in Scriptaculous and is made up of just two constructor functions: one to create an object that is draggable and apply a set of default behaviors that occur while dragging, and one to deal with the dropping of dragged elements and with a set of different options to control the behavior of the element being dropped.

    More JavaScript Articles
    More By Dan Wellman


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

    JAVASCRIPT ARTICLES

    - 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
    - Active Client Pages at the Server
    - ACP Tab Web Page







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    Stay green...Green IT