Consider using autoEl
for your solution...
In Ext 4.x, it is recommended to avoid utilizing autoEl
as a configuration property for the window
object, as it may result in a malformed window. Instead, I advise applying autoEl
within a component
(as an item within your window).
new Ext.Window({
title : "iframe",
width : 300,
height: 300,
layout : 'fit',
items : [{
xtype : "component",
autoEl : {
tag : "iframe",
src : "http://www.yahoo.com"
}
}]
}).show();
The code snippet provided offers a more robust solution compared to
new Ext.Window({
title : "iframe",
width : 300,
height: 300,
layout : 'fit',
autoEl : {
tag : "iframe",
src : "http://www.yahoo.com"
}
}).show();
Please note that Google and Facebook websites are currently restricted from loading within an iframe.