I’m currently learning sencha touch and as a test i wrote a little webservice and i want to display the resulting items in a list
But i can’t get it to work…
Ext.define('GS.view.ListTest', {
extend: 'Ext.navigation.View',
requires:[
'Ext.dataview.List',
'Ext.data.proxy.JsonP',
'Ext.data.Store'
],
xtype:'listpanel',
config: {
title: 'Fifa List',
iconCls: 'star',
items: {
xtype: 'list',
itemTpl: '{Player1}',
store: {
autoLoad: true,
fields: ['MatchID','Player1', 'ScorePlayer1' ,'ScorePlayer2','Player2'],
proxy: {
type: 'jsonp',
url: 'http://fifa.verhulstrobin.be/webservices/getMatches.php',
reader: {
type:'json',
rootProperty: 'matches'
}
}
}
}
}
});
I check and my json is valid …
All it says in the console is Uncaught SyntaxError: Unexpected token :
try this