Published on 2005-07-28 15:11:58

MochiKit is a highly documented and well tested, suite of JavaScript libraries that will help you get shit done, fast. We took all the good ideas we could find from our Python, Objective-C, etc. experience and adapted it to the crazy world of JavaScript.

From the libraries available in Mochkit, there is MochiKit.Async to manage asynchronous tasks. MochiKit.Async provides facilities to manage asynchronous tasks. The model for asynchronous computation used in this module is heavily inspired by Twisted.

var url = "/src/b/bo/bob/MochiKit.Async/META.json"; /* META.json looks something like this: {"name": "MochiKit", "version": "0.5"} */ var d = loadJSONDoc(url); var gotMetadata = function (meta) { if (MochiKit.Async.VERSION == meta.version) { alert("You have the newest MochiKit.Async!"); } else { alert("MochiKit.Async " + meta.version + " is available, upgrade!"); } }; var metadataFetchFailed = function (err) { alert("The metadata for MochiKit.Async could not be fetched "); }; d.addCallbacks(gotMetadata, metadataFetchFailed);

There is some goog examples of Sortable Tables, Color Wheel and Rounded Corners. But not yet examples of AJAX maybe they'll add some soon. anyway check it out.


Related Entries

Member of the PHP Magazine Network, Copyright (C) 2005-2008 phpmagazine.net All Rights Reserved