PDA

View Full Version : about define a JsonStore issue, can not assignment for store?Help!



yagami123551
20 May 2016, 2:10 AM
var store = new Ext.data.JsonStore({
proxy : new Ext.data.HttpProxy({
url: 'NcServlet?methodName=getNcipList',
}),
reader : new Ext.data.JsonReader({
totalProperty : 'count',
root : 'nc'
})
,fields : [{name:"ncname", type:"string"} ,{name:"ncip", type:"string"}]
});

store.load();


My json data is:
{"count":1,"nc":[{"ncname":"nc_0","ncip":"192.168.0.52"}]}

the question is i can not assignment for store,
the quest can be sended to server,server can return json data to javascript,
I guess the issue is happended to extjs code,please help!

Gary Schlosberg
20 May 2016, 5:22 AM
Which specific version of Ext JS are you using?

yagami123551
22 May 2016, 8:14 PM
hi, Gary Schlosberg my extjs version is 3.3.1

hakimio
22 May 2016, 11:48 PM
hi, Gary Schlosberg my extjs version is 3.3.1

Ext 3 is no longer supported and this forum section is for version 6. You can try to see if you can get any help in this forum section (https://www.sencha.com/forum/forumdisplay.php?39-Ext-JS-3.x-Unsupported).

yagami123551
23 May 2016, 6:29 PM
Ext 3 is no longer supported and this forum section is for version 6. You can try to see if you can get any help in this forum section (https://www.sencha.com/forum/forumdisplay.php?39-Ext-JS-3.x-Unsupported).

thanks!

Gary Schlosberg
25 May 2016, 4:02 PM
I've relocated the thread.