PDA

View Full Version : problem: Store with JSON response



paula.mansour
27 Mar 2011, 10:19 PM
I need your help please.
Simply I want consume this JSON service "http://zrivera.com/extjs4/fields.json".

Here is my code, but it doesn't work please help.


var fieldsStore = new Ext.data.JsonStore({
autoLoad:true,
root: 'fields',
idProperty: 'name',
proxy : new Ext.data.ScriptTagProxy({
url:'http://zrivera.com/extjs4/fields.json'
})
fields: [ 'name' ]
});

Thanks