Shehul
4 Apr 2012, 11:45 AM
Hi,
I am searching for,
When I click the button in a new window I can open any website with the given URL.
For now I found most people say use IFrame. The window and page shows fine but gives problem for resizing the window(the resize doesn't work properly).
=========================CODE 1====================================
var htmlNewWin = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" src="' + winurl + '"></iframe>';
var win = Ext.create('Ext.Window',
{
width : 1000,
height : 480,
layout : 'fit',
plain : true,
maxWidth : window.screen.width,
maxHeight : window.screen.height,
maximizable : 'true',
minimizable : 'true',
resizable : 'true',
closable : true,
html : htmlNewWin
}
);
=========================CODE 1====================================
I searched and found,
http://stackoverflow.com/questions/1783919/create-a-window-browser-inside-the-browser-with-extjs
this also has the same problem.
I found this but it gives me blank window,
http://stackoverflow.com/questions/6025814/extjs-4-create-an-iframe-window
=========================CODE 2====================================
Ext.require([
'Ext.tab.*',
'Ext.window.*',
'Ext.tip.*',
'Ext.layout.container.Border'
]);
Ext.onReady(function(){
var trackit = Ext.create('Ext.Button',
{
text : 'Test',
renderTo : Ext.getBody(),
iconCls : 'map',
cls : 'cmbfonts',
textAlign : 'left',
//disabled : true,
handler : function ()
{
var win3=new Ext.Window({
title : "iframe",
width : 300,
height: 300,
layout : 'fit',
items : [{
xtype : "component",
autoEl : {
tag : "iframe",
src : "http://www.yahoo.com"
}
}]
}).show();
}
});
});
=========================CODE 2====================================
I am using ext 4.1 RC.
If someone can give me non I Frame based solution which has no resize problem it will be great
but if iframe is the only way than please reply how to fix the resizing problem.
Thanks,
Shehul
(http://stackoverflow.com/questions/1783919/create-a-window-browser-inside-the-browser-with-extjs)
I am searching for,
When I click the button in a new window I can open any website with the given URL.
For now I found most people say use IFrame. The window and page shows fine but gives problem for resizing the window(the resize doesn't work properly).
=========================CODE 1====================================
var htmlNewWin = '<iframe width="100%" height="100%" frameborder="0" scrolling="no" src="' + winurl + '"></iframe>';
var win = Ext.create('Ext.Window',
{
width : 1000,
height : 480,
layout : 'fit',
plain : true,
maxWidth : window.screen.width,
maxHeight : window.screen.height,
maximizable : 'true',
minimizable : 'true',
resizable : 'true',
closable : true,
html : htmlNewWin
}
);
=========================CODE 1====================================
I searched and found,
http://stackoverflow.com/questions/1783919/create-a-window-browser-inside-the-browser-with-extjs
this also has the same problem.
I found this but it gives me blank window,
http://stackoverflow.com/questions/6025814/extjs-4-create-an-iframe-window
=========================CODE 2====================================
Ext.require([
'Ext.tab.*',
'Ext.window.*',
'Ext.tip.*',
'Ext.layout.container.Border'
]);
Ext.onReady(function(){
var trackit = Ext.create('Ext.Button',
{
text : 'Test',
renderTo : Ext.getBody(),
iconCls : 'map',
cls : 'cmbfonts',
textAlign : 'left',
//disabled : true,
handler : function ()
{
var win3=new Ext.Window({
title : "iframe",
width : 300,
height: 300,
layout : 'fit',
items : [{
xtype : "component",
autoEl : {
tag : "iframe",
src : "http://www.yahoo.com"
}
}]
}).show();
}
});
});
=========================CODE 2====================================
I am using ext 4.1 RC.
If someone can give me non I Frame based solution which has no resize problem it will be great
but if iframe is the only way than please reply how to fix the resizing problem.
Thanks,
Shehul
(http://stackoverflow.com/questions/1783919/create-a-window-browser-inside-the-browser-with-extjs)