ExtJs use IFrame implementation code _ extjs

Source: Internet
Author: User
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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.