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:
The Code is as follows:
Var p_center = new Ext. TabPanel ({
Region: "center ",
ResizeTabs: true, // turn on tab resizing
MinTabWidth: 115,
TabWidth: 135,
EnableTabScroll: true,
Width: 600,
ActiveTab: 0,
Height: 250,
Items :[{
Xtype: 'iframepanel ',
Title: 'department? Unified? Rong? Quantity? Points? Configuration? ',
Id: "form_chapteradmin ",
LoadMask: {msg: 'loading Quote ...'},
DeferredRender: false,
// BodyStyle: 'padding: 10px ',
FrameConfig: {name: 'chatperadminform '},
Border: false,
// Frame: true,
Defasrc SRC: 'http: // mhl-pc/ReportServer? % List & rs: Command = Render: toolbar = false'
}],
Defaults: {autoScroll: true}
});
Figure: