Skip to content

Instantly share code, notes, and snippets.

@jyotty
Created March 15, 2009 11:55
Show Gist options
  • Save jyotty/79395 to your computer and use it in GitHub Desktop.
Save jyotty/79395 to your computer and use it in GitHub Desktop.
onSuccess: function(transport) {
var json = transport.responseText.evalJSON(true);
$H(json).each(function (pair) {
$H(pair.value).each(function (item) {
$(pair.key).insert('<li class="'+item.value.status+'"><span>'+item.key+'</span><ul><li>'+item.value.mtime+'</li><li>'+item.value.size+'</li></ul></li>');
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment