Home arrow JavaScript arrow Page 2 - Introducing MochiKit
JAVASCRIPT

Introducing MochiKit


MochiKit (pronounced mo-chi kit) is a lightweight, fast JavaScript library that was inspired by the Python programming language. It aims to make a lot of JavaScript syntax more convenient. It was produced by Mochi Media, a company dedicated to providing tools and services that support content creators, and written almost entirely by Bob Ippolito. Keep reading to learn more about this library.

Author Info:
By: Dan Wellman
Rating: 5 stars5 stars5 stars5 stars5 stars / 2
June 04, 2007
TABLE OF CONTENTS:
  1. · Introducing MochiKit
  2. · MochiKit Modules
  3. · MochiKit.Color and More
  4. · MochiKit.Selector and More

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

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.


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Tutorials for Beginners
- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 11 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials