Sortable Ajax Tables in JSON and XML with MochiKit

This is an example of how one might use MochiKit to do sortable tables from data given by the server in either JSON or XML format. It uses MochiKit.Async to fetch the data, and MochiKit.DOM to display it.

Includes a micro implementation of something TAL-esque (called "MochiTAL" in the source, using a mochi: namespace). For a more detailed description of what happens under the covers, view the ajax_tables.js source and look at the comments.

View Source: [ index.html | ajax_tables.js | domains.json | domains.xml ]
Load data: [ domains.json | domains.xml ] (current format: loading)
Domain Name Creation Date Expiry Date Organization Name
mochibot.com 2005-02-10 2007-02-10 Jameson Hsu
pythonmac.org 2003-09-24 2006-09-24 Bob Ippolito
undefined.org 2000-01-10 2006-01-10 Robert J Ippolito
python.org 1995-03-27 2007-03-28 Python Software Foundation