您的位置:首页 > Web前端 > JavaScript

Extjs中 TabPane如何内嵌其他网页

2013-01-21 16:48 429 查看
var tabPanel = new Ext.TabPanel({
	    activeTab: 0,   
	    region:'center',   
	    layoutOnTabChange : false,
	    deferredRender: true,   
	    items:[
	   
	    {
	        title: '百度',   
	        layout: 'fit',
	        height: 375,    
	        id: 'training_grief_rep_tab_4',   
	        border: false,
	        deferredRender: false,
	        //items : new TrainingBriefSummaryItem({sunmmaryId: tariningId}),
	        autoScroll : true,
	        html:' <iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="'+'http://www.baidu.com'+'"> </iframe>'
	    }
	    ]   
    });

图片



Ext.ns("ShouRuReportMgr");
ShouRuReportMgr = Ext.extend(Ext.Panel, {
	searchPanel: null,
	gridPanel: null,
	store: null,
	topbar: null,
	constructor: function(a) {
		Ext.applyIf(this, a);
		ShouRuReportMgr.superclass.constructor.call(this, {
			id: "ShouRuReportMgr",
			iconCls: "menu-appraise-pay",
			title: "中心月度报表-收入",
			deferredRender: true,
			html: ' <iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="'+__ctxPath + '/pages/report/shouRuReportMgr.jsp' + '"> </iframe>'
		});
	}
});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: