mercredi 23 avril 2014

JsonP store and trouble with reader

Having some issues with loading data in my store using JsonP.

I have a facebook page which I need to load my json data from.

http://ift.tt/1fpLy9T


Every time it error out and not able to load my data. I am not sure what is that I am not doing right.


my codes are as follows.



Code:



Ext.define('myApp.store.MyFeedStore', { extend: 'Ext.data.Store',


requires: [
'myApp.model.MyFeed',
'Ext.data.proxy.JsonP',
'Ext.data.reader.Json'
],


config: {
autoLoad: true,
model: 'myApp.model.MyFeed',
storeId: 'MyFeedStore',
proxy: {
type: 'jsonp',
url: 'http://ift.tt/1f6cWio',
callbackKey: 'jsoncallback',
reader: {
type: 'json',
record: 'entries'
}
}
}
});




Aucun commentaire:

Enregistrer un commentaire