您的位置:首页 > 其它

Ext.Window更换iframe的地址2

2009-11-09 12:01 169 查看
//按扭
var dateBtn = new Ext.Action({
text:'按日期',
tooltip:'按日期查看当月报表',
handler:function(){
Ext.getDom('iframeA').src = '/EXTcash/cashOutAction.do?method=lineChart&flag=coutDate';
}
});
var typeBtn = new Ext.Action({
text:'按类别',
tooltip:'按类别查看当月报表',
handler:function(){
Ext.getDom('iframeA').src = '/EXTcash/cashOutAction.do?method=lineChart&flag=coutType';
}
});
var chartPanel = new Ext.Panel({
//title:'财务图表',
width: 540,
height: 400,
tbar:[
'-',dateBtn,
'-',typeBtn
],
html:'<iframe id="iframeA" scrolling="auto" frameborder="0" width="100%" height="100%" src="/gggg.html"></iframe>'
});

var chartWin = new Ext.Window({
title:'titles,
width:540,
height:400,
animCollapse: true,
resizable:false,
modal:true,
closeAction :'hide',
window:{layout:'fit'},
items:chartPanel
});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: