Hi,
I’m completely stuck with my JsonStore. It will not load. I have the following store defined:
var dstore = new Ext.data.JsonStore({
url: Tariffs.config.connector_url
,baseParams: {
action: 'mgr/calendar/getmonth'
}
,fields: ['id', 'year', 'month', 'src']
,root: 'months'
});
dstore.load();
alert(dstore.getTotalCount());
I have simplified the getmonth.php routine to the point that it just returns the following Json string:
error_log('About to return Json string');
return '{"months":[{"id":0,"month":"10","year":"2010","src":""},{"id":1,"month":11,"year":"2010","src":""}]}';
I know the
getmonth.php is called as I see the log statement. But after that no data appears in the store. The
alert(dstore.getTotalCount()) replies with 0...
Anybody any ideas?