View Full Version : open html page in panel

kurt schrauwen
24 Jun 2010, 4:49 AM

I was looking but not with any result for an example of how to open a regular html page in a panel.
Can anyone help me or give some hints ?


24 Jun 2010, 5:41 AM
Are you trying to load a page from a different domain? Then you'll have to use an iframe since ajax requests cannot load html pages from other domains than your own.

kurt schrauwen
24 Jun 2010, 5:43 AM
Hai mankz,

No I'm trying to open a page form the same domain

24 Jun 2010, 5:54 AM
Open Firebug and see if you get any errors, open the Net tab and see if your server returns an error.

24 Jun 2010, 7:32 AM
Try something like

new Ext.Window({
bodyCfg: {
tag: 'iframe',
src: 'http://localhost/projName/myPersonalPage.html'

24 Jun 2010, 4:20 PM
or you can set autoLoad property:

autoLoad : Object/String/Function
A valid url spec according to the Updater Ext.Updater.update method. If autoLoad is not null, the panel will attempt to load its contents immediately upon render.
The URL will become the default URL for this panel's body element, so it may be refreshed at any time.