PDA

View Full Version : Requesting file on other domain, load not works



metton
9 Aug 2007, 5:23 PM
var dsdd = new Ext.data.Store({
proxy: new Ext.data.ScriptTagProxy({
url: 'http://www.simplics.ru/works/cooler/try2.json'
}),

reader: new Ext.data.JsonReader({
record: 'Names',
id: 'ID'
}, [
'Name'
])
});
dsdd.load({callback: function() {alert(dsdd.getAt(0));}});

alert says: undefined

Why?

tryanDLS
9 Aug 2007, 5:58 PM
You need to debug your code. Use firebug to step thru the response handling in the Store object.