当前位置: 代码迷 >> Ajax >> EXT3.0 this.getForm.submit不能交付
  详细解决方案

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

热度:590   发布时间:2013-01-07 10:02:24.0
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,谁能帮我分析一下吗啊?
------解决方案--------------------
贴个可测试的示例来看看。。这样不清楚哪里出问题。。
  相关解决方案