-
22 Apr 2010 7:25 AM #1
How to maintain a website inside the ContentPanel?
How to maintain a website inside the ContentPanel?
I created a window into which I inserted a a ContentPanel. Using the setUrl() method, I place the content of a website on the content panel. But the problem I have is, when I launch to open the window, the site content is no longer shown inside the ContentPanel but takes the whole browser (iexplorer). There are some sites that remain inside the panel. Has someone a way we can maintain the site inside the ContentPanel?
regards
-
22 Apr 2010 7:55 AM #2
-
22 Apr 2010 8:13 AM #3
Here is the code
Window w = new Window();
w.setSize(800, 500);
w.setHeading("Mini");
w.setMaximizable(true);
w.setMinimizable(true);
ContentPanel center = new ContentPanel();
center.setUrl(http://www.google.com);
w.add(center);
w.show();
RootPanel.get().add(w);
-
22 Apr 2010 8:38 AM #4
Hello
Here is the code I tested, you can inspire a solution
Code:center = new Ext.Panel({autoLoad:"http://www.google.com"}); w = new Ext.Window ({title : "xx", layout: 'fit', items:center, height : 300, width:400}) w.show();


Reply With Quote