PDA

View Full Version : how to display iframe on a grid



monazahed
17 Sep 2013, 8:58 AM
I have a view button on my toolbar and the handler function should display a php page in iframe on the body.
My code show the page on a popup window, how can I fix this to show it on the body?

text: 'view',
iconCls: 'icon-add',
handler: function() {
var myWin = Ext.create("Ext.window.Window", {
renderTo: document.body,

autoScroll:true,

items: {
xtype: 'component',
autoEl: {
tag: 'iframe',
style: 'height: 10%; width: 100%; border: false',
align:'left',
method:'GET',
src: 'combo.php'

}
}
}).show();
}

ettavolt
18 Sep 2013, 12:06 AM
Try to use card in viewport.