extjs中的Panel控件,当点击按钮后panel2的数据让它更新。页面刚打开的时候不需要panel2。当点击完查询按钮后触发加载。
我要刷新的panel2是放在p里。如下代码 var p = new Ext.Panel({
id: "panel2",
title:'要更新的报表', frame:true,
layout: 'form', width:850,
items:[p_form,panel2],
renderTo: Ext.getBody()
});
var panel2 = new Ext.Panel( {
id: "panel2",
fitToFrame: true,
width:850,
height:650,以下是当触发点击事件
search: function(start) {
var appname = Ext.getCmp('appSystem').getValue();
Ext.getCmp('panel2').src = "http://localhost:8080/uosp/frameset?__report=reports/appsystem.rptdesign&__parameterpage=false&appname="+appname+"&__format=HTML";然后想让那个panel2里的内容更新。后面的代码怎么写?用的是extjs2.0extjsPanel报表
解决方案 »
- var oOption = document.createElement("OPTION");
- table 排序
- 如果ul里还有ul该怎么获取
- 用javascript建表
- 如何用鼠标在网页上画连折线
- 效果不出来 请教下
- javascript 中,去掉字符串前后的空格是什么函数呀
- 如何动态创建一个对象(如<input type=text>、<img>、<a>等),并且在当前页显示出来?
- 请问创建一个完全没有边框的窗口的代码,只是一张底图
- 在Javascript中如何得知select控件被选中多少项?
- 弹出一个DIV,里面有个播放器,IE10下面一切正常, IE8下面播放器大小自动变大了
- 手机上自动激活输入状态
var appname = Ext.getCmp('appSystem').getValue();
Ext.getCmp('panel2').src = "http://localhost:8080/uosp/frameset?__report=reports /appsystem.rptdesign&__parameterpage=false&appname="+appname+"&__format=HTML";
p.add(panel2);
p.dolayout();