IFRAME is required sometimes, such as embedding a report in a tab and embedding interfaces of other systems. The following code is a section in the project. I hope to give a reference to the brother who developed it with extjs.
Environment:
Microsoft Visual Studio 2008 SP1
Asp.net MVC
Extjs 3.1.1
IFRAME requires a plug-in managediframe (miframe. JS) of extjs. With this plug-in, you can use xtype: 'iframepanel 'to download
Code segment:
1: var p_center = new Ext.TabPanel({
2: region: "center",
3: resizeTabs: true, // turn on tab resizing
4: minTabWidth: 115,
5: tabWidth: 135,
6: enableTabScroll: true,
7: width: 600,
8: activeTab: 0,
9: height: 250,
10: items:[{
11: xtype: 'iframepanel',
12: Title: 'System? Unified? Rong? Quantity? Points? Configuration? ',
13: id:"form_chapteradmin",
14: loadMask:{msg:'Loading Quote...'},
15: deferredRender: false,
16: //bodyStyle:'padding:10px',
17: frameConfig:{name:'chatperadminForm'},
18: border:false,
19: //frame:true,
20: defaultSrc: 'http://mhl-pc/ReportServer?%List&rs:Command=Render:toolbar=false'
21: }],
22: defaults: { autoScroll: true }
23: });
24:
Figure: