MochiKit is…
a JavaScript library which aims to make complex coding possible without getting in the way. Unlike many other JavaScript libraries, it is well documented and has a test suite.
Start Here
HOWTO Guides
- Getting Started with AJAX
- MochiKit Style Guide
- Generating the RST Documentation
- A reference page for MochiKit
- Using MochiKit with Dojo Toolkit
- Roll your own packed MochiKit file
- Create a new MochiKit release (help for project admins)
Get Involved
Posted Code
Note: If possible, when you post code please include a link to a functional example in addition to the code that you're sharing so that people can see an example of what you are sharing in context.
- How To Post Code To This Wiki
- Cross-Domain LoadJSONDoc
- A Simple Way to log to an external (python) server
- Calling a JSON RPC Server
- A fix for roundElement padding problems
- MochiKit-related scripts for GreaseMonkey
- A (partial) port of the Scriptaculous autocomplete control
- A function for getting the value of a single form element
- A small Event System Engine based on OpenRico ajaxEngine
- An example of parsing html into DOM nodes
- Interpreter as a debugger replacement
- Displaying Server Side errors when using XMLHttpRequest.
- getFirstDefined returns first !isUndefinedOrNull argument
- connectOnce disconnects a connection after the first signal
- MochiKit-based ComboBox
- Simple arbitrarily nested select boxes
- MochiKit.Style Extensions - A number of suggested extensions to MochiKit.Style
- MochiKit.DOM Extensions - A number of suggested extensions to MochiKit.DOM
- MochiKit.SVG Add-on - A suggested add-on MochiKit for SVG support
Posted Code that lives in MochiKit now
- An inline or popup div/window for viewing log messages (now MochiKit.LoggingPane)
- A DragAndDrop implementation in MochiKit (now in MochiKit.DragAndDrop)
- Some simple effects using MochiKit (now in MochiKit.Visual)
- A port of script.aculo.us library on MochiKit (now in MochiKit.DragAndDrop & MochiKit.Visual)
Deprecated Code Examples
- A Simple Event Object Wrapper for cross-browser use
- How about stripping HTML out of strings? Small and effective. - Use MochiKit.DOM.scrapeText
- A function that groups multiple requests into a single Deferred - Use MochiKit.Async.gatherResults
