PDA

View Full Version : [CLOSED] [Extjs 4.0.7] Ext.data.proxy.Ajax doesn't construct a reader



ebart
25 Nov 2011, 2:49 AM
It seems Ext.data.proxy.Ajax isn't creating a (default) reader.



var proxy = new Ext.data.proxy.Ajax({
url: '/henji/audit.json'
});

proxy.getReader(); // returns undefined



var proxy = new Ext.data.proxy.Ajax({ url: '/henji/audit.json'
reader: {
type: 'json',
root: 'Henji'
}
});

proxy.getReader(); // returns just the config

mitchellsimoens
25 Nov 2011, 9:35 AM
There isn't a default one. You have to specify this.