读书人

EXT3.0 this.getForm.submit不能交付

发布时间: 2013-01-07 10:02:24 作者: rapoo

EXT3.0 this.getForm.submit不能提交
本帖最后由 oXiaoLong825227515 于 2012-12-10 09:26:25 编辑


var obj={"homepath":'<%=path%>',"id":vo.id};
var baseTitle=new module.storeroommanager.js.baseTitle(obj);
var basePicture= Ext.getCmp('basePicture');
Ext.getCmp('help').hide();
basePicture.show();

if(Ext.getCmp('base')!=undefined){
basePicture.remove(Ext.getCmp('base'));
}
basePicture.add({
id:'base',
title : '库房架位基本信息',
tbar:[baseTitle.buttonUpdate,'-',baseTitle.buttonDelete],
html: "<iframe frameborder='0' width='100%' height='100%' src='baseList.jsp?id="+vo.id+"'></iframe>"
})

basePicture.activate(Ext.getCmp('base'));


buttonUpdate:


this.buttonUpdate = new Ext.Button({
text:'保存',
iconCls : 'db-icn-btn-edit',
handler:function(){
if(_this.getForm().isValid()){
_this.getForm().submit({
url:cfg.homepath+"/storeroommanager/storageInfoAction@update.ces",

success:function(form,action){
Ext.showBox("提示",action.result.message);

if(_this.dlg){
_this.dlg.close();
}
},
failure:function(form,action){
Ext.showBox("提示",action.result.message);

if(_this.dlg){
_this.dlg.close();
}
}
});
}
}
});

报错this.form.el is undefined,谁能帮我分析一下吗啊?
[解决办法]
贴个可测试的示例来看看。。这样不清楚哪里出问题。。

读书人网 >Ajax

热点推荐