Skip to content

Instantly share code, notes, and snippets.

@johndemic
Created December 3, 2010 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johndemic/727039 to your computer and use it in GitHub Desktop.
Save johndemic/727039 to your computer and use it in GitHub Desktop.
Ext.Ajax.request({
method: 'GET',
url: '/api/system/status',
success: function(resp) {
var json = Ext.decode(resp.responseText);
Ext.iterate(json, function(host, probe) {
var chart = buildChart(probe);
menu.add(
{
title: host,
items: [chart]
}
).show();
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment