Ext.Window更换iframe的地址2

//按扭
    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
    });

posted on 2009-11-09 12:01  hcmfys_lover  阅读(455)  评论(0编辑  收藏  举报