读书人

ExtJs:amp;#x27;this.form.el.domamp;#x27;

发布时间: 2013-01-08 14:02:13 作者: rapoo

ExtJs:'this.form.el.dom' 为空或不是对象
本帖最后由 oXiaoLong825227515 于 2012-12-09 22:00:27 编辑


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();
}
}
});
}
}
});


想实现的功能:左边是树、点击树节点、右边出现tabpanel。tab里面嵌套iframe、iframe里的功能就是修改、但是出现下面错误、高手指点一下。。另外这样写、逻辑和代码合理吗?
报'this.form.el.dom' 为空或不是对象
[解决办法]
报'this.form.el.dom' 为空或不是对象 这句代码在哪?。。发的代码没有一点联系别人怎么帮你找问题。。
[解决办法]
楼主最好把可测试的代码贴上来,如果比较大的话,打个包上传到资源,这样,大虾更方便也更容易帮你解决问题。

[解决办法]
详细见你另外一个帖子,先定义form再运行buttonUpdate

读书人网 >Ajax

热点推荐