tbar : [{
id : 'addDiction',
text : '新增',
iconCls : 'option',
handler : function() {
var form =new Ext.form.FormPanel({
layout : 'table',
layoutConfig : {
columns : 2
},
defaults : {
layout:'form'
},
items:[
{items: [tdictiontype]},
{items: [ttypename]},
{items: [tcode]},
{items: [tccode]},
{items: [tcname]},
{items: [tdictionno]},
{items: [ttsort]}
],//items
url: "/d9inn/diction.do",
baseParams: {method: "addDiction"},
method: "post",
buttons: [{
text: "新增",
handler: function(){
var back = {
success: function(f, action){
Ext.Msg.alert("成功", action.result.msg);
store.reload();
win.close();
},
failure: function(){
Ext.Msg.alert("错误", "对不起,操作失败,请检查数据是否完整!");
}
};
form.getForm().submit(back);
}
},{
text: "取消",
handler: function(){
win.close();
}
}]
});//FormPanel
var win = new Ext.Window({
title: "修改字典信息",
id: "edit",
width: 500,
modal: true,
autoHeight: true,
items: [form]
});
win.show("editEmployee");
}
}]
以上是我的部分源码,当我每次重新加载页面之后,第一次点击导航条上的增加按钮时,可以正确弹出页面的,可是我第二次点击增加按钮时fireFox就会出现如下错误信息:
Operation is not supported" code: "9
[Break on this error] window.undefined=window.undefined;Ext=...window.attachEvent("onunload",a)}})();
http://localhost:8181/d9inn/js/ext-base.js Line 7
希望各位高手帮我解决下 谢谢!