Skip to content

Instantly share code, notes, and snippets.

@jacobandresen
Created January 11, 2011 19:34
Show Gist options
  • Save jacobandresen/774973 to your computer and use it in GitHub Desktop.
Save jacobandresen/774973 to your computer and use it in GitHub Desktop.
Ext.onReady(function(){
var ds = new Ext.data.Store({
proxy: new Ext.data.ScriptTagProxy({
url: "https://api.meetup.com/topics.json/?key=14105b6310651261633e2e1715346562"
}),
baseParams:{"search":"Javascript"},
reader: new Ext.data.JsonReader({
root: 'results'
},
['id', 'name', 'link']
)
});
var grid = new Ext.grid.GridPanel({
store: ds,
columns: [
{head: "id", width:20, dataIndex:'id'},
{head: "name", width:100, dataIndex:'name'},
{head: "link", width:200, dataIndex:'link'}
],
applyTo: Ext.getBody(),
title: 'meetup topics',
height: 700,
autoScroll: true,
});
ds.load();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment