Ext.define('Winfo.store.Sites', {
extend : 'Ext.data.Store',
requires : ['Winfo.model.Site'],
model : 'Winfo.model.Site',
autoLoad:true,
remoteSort : true,
pageSize : 25,
//autoSync : true,
proxy : {
type : 'ajax',
api : {
read : siteService.asp?act=read',
update : siteService.asp?act=update'
},
reader: {
type: 'json',
root : 'records',
successProperty: 'success'
},
writer: {
type: 'json',
writeAllFields: true,
encode: false,
root : 'records'
}
},
initComponent : function() {
var me=this;
me.callParent(arguments);
}
});
請問各為ExtJS前輩..
小弟目前正学习使用ASP + ExtJS4 这期间碰到了一些问题...
找了许久都没找到答案,希望大大沉余之时拨空能够给小弟一些方向或是参考的范例文件
我在store(如上)我使用了Proxy type:ajax 可以使前台的Grid 透透 Store 的Proxy API:read 成功的与后台(ASP)取得资料
但当我编辑Grid(Ext.grid.plugin.CellEditing)时,
用Firebug 查看只有_dc xxxxxxxxxxxx 的参数,
但有一个post {"records":[{"cell_fa_index":"1","id":"100001_2"}]}
而我使用下列程式码测试取得传过来的参数
FOR each item in Request.Form
response.write Item
Next
只有_dc 这参数
但无法取得 {"records":[{"cell_fa_index":"1","id":"100001_2"}]}
请问要如何在后台(ASP),接收前台传过来的资料呢??
感谢大大....