ExtJS combo box data from json
i have开发者_JAVA百科 json :
{"total":100, "category": [Village, City, School, HighSchool]}
for extjs combobox :
reader: new Ext.data.JsonReader({
root: 'category'},
[{name: 'category'}])
it not loods my data in it when i look in firebug it shows
thks for your help...
I don't see the error that firebug shows, but your JSON is invalid. Try:
{"total":100, "category": ["Village", "City", "School", "HighSchool"]}
//values in array should be in double quotes
精彩评论