Friday, April 22, 2011

Create a window browser inside the browser with extjs

by : Fernando Martínez
Ext.IframeWindow = Ext.extend(Ext.Window, {
onRender: function() {
this.bodyCfg = {
tag: ‘iframe’,
src: this.src,
cls: this.bodyCls,
style: {
border: ’0px none’
}
};
Ext.IframeWindow.superclass.onRender.apply(this, arguments);
}
});
var w = new Ext.IframeWindow({
id:id,
width:640,
height:480,
maximizable:true,
title:”Knowledge Control Solutions Iframe Window Sample”,
src:”http://www.google.co.id”
})
w.show();
source : http://stackoverflow.com/questions/1783919/create-a-window-browser-inside-the-browser-with-extjs

No comments:

Post a Comment