在三级窗口定义的window,想将其显示在顶层,使用top.Ext.Window定义,怎样将formPanel放入其中?在其中使用Ext.getCmp()报错,怎么解决??
解决方案 »
- rs.next()问题 我表里不只一条记录的,为什么它只执行out, 我是想让它执行else的
- Jquery查找ul,li
- 请教JS+Flex的问题
- js调用VB ocx,然后给ocx中的vb type赋值
- 求正则表达式替换问题
- 这个正则实在太难了,,搞了几年了,发现特别难写,,求高手给个答案~~谢谢
- 如何打开文件选择对话框,将文件保存至用户指定的位置??谢谢
- 如何动态产生一行的控件?
- 插入flash 是否可以相应javascripti的onclick事件
- 联接中传递中文参数产生乱码的问题
- 一直提示$(document).ready(function() {} 缺少对象
- 一个函数两种方式调用,不一样的效果?一种可以全屏,一种不可以全屏!应该怎么解决这个问题?(用Chrome浏览器)
id : 'updateTestWin',
width : 290,
height : 150,
title : '测试',
plain : true,
closable : true,
resizable : false,
layout: 'fit',
frame : true,
modal : true,
items : [{
autoScroll : true,
xtype : 'form',
labelAlign : 'left',
buttonAlign : 'center',
bodyStyle : 'padding:5px',
frame : true,
name : 'testForm',
id : 'testForm',
labelWidth : 80,
model : true,
defaultType : 'textfield',
defaults : {
anchor : '95%'
},
items : [ {
name : 'Name',
fieldLabel : '用户名',
value : "" // 默认值
}, {
id : 'password',
fieldLabel : '密 码',
value : ""
}],
buttons : [ {
text : '提交',
iconCls : 'icon-ok',
handler : function(){
alert(Ext.getCmp('updateTestWin'));
var form = Ext.getCmp('updateTestWin').getForm();
values = form.getFieldValues();
Ext.Msg.confirm("提示","确认提交?",callback);
}
}, {
text : '取消',
iconCls : 'icon-close',
handler : function() {
updateTestWin.close();
}
} ]
}]
});
updateTestWin.show();
代码如上,提示Ext.getCmp('updateTestWin')为空啊