I have jsonstore:
jstore = new Ext.data.JsonStore({
fields: ['id', 'timer', 'name', 'message'],
root: 'data',
autoLoad: true,
proxy: new Ext.data.HttpProxy({
url: 'chat.php',
method: 'GET',
}),
remoteSort: false
});
which does not load data from the url. My php file works correctly, if I find my url in the same URL that is used by the repository, the output is as follows:
{fields: ['id', 'name', 'time', 'message'], 'data': [{id: '5', name: 'stefano', time: '2012-05-21 14:08:58', message: 'mymessage'}]}
which should be a valid json string, right?
The store does not load either autoload or explicit call
jstore.load({params: {mode:'RetrieveNew', id:'-1'}});
Any idea on what can do this? Many thanks!
source
share