First style:
Style after completion:
The following code is used:
[Javascript] var win = new top. Ext. Window ({
Title: menuReferenceObj. patientName + '-- medical records --' + menuReferenceObj. title,
Layout: 'fit ',
Height: 537,
Width: 800,
CloseAction: 'close ',
Plain: true,
Modal: true,
Html: '<iframe id = "ifrm" scrolling = "auto" frameborder = "0" width = "100%" height = "100%" src = "/xxx/Hangzhou"> </iframe >'
});
Win. show (this );
Var win = new top. Ext. Window ({
Title: menuReferenceObj. patientName + '-- medical records --' + menuReferenceObj. title,
Layout: 'fit ',
Height: 537,
Width: 800,
CloseAction: 'close ',
Plain: true,
Modal: true,
Html: '<iframe id = "ifrm" scrolling = "auto" frameborder = "0" width = "100%" height = "100%" src = "/xxx/Hangzhou"> </iframe >'
});
Win. show (this );
You need to add top, but note that sometimes top. Ext. Window cannot be found.
You need to write in Ext code,
InpatientViewPanel = Ext. extend (Ext. grid. GridPanel ,{
Constructor: function (){
InpatientViewPanel. superclass. constructor. call (this ,{});
},
ShowWindow: function (){
// The Code pasted above is OK.
}
});
From yhc13429826359