mercredi 23 avril 2014

Senca Touch newbie question

Trying to build my first app in Sencha touch and having issues with loading data in my store.

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

http://ift.tt/1fpLy9T


I try using jsonp but every time it error out and not able to load my data.


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