PDA

View Full Version : hosted html page into a TabPanel



gege59
9 Nov 2010, 8:07 AM
Hi,

I made some research and didn't find any way to insert an html page into a TabPanel.

Here is my panel code:

new Ext.TabPanel({
activeTab:0,
border: false,
items: [{
autoScroll: true,
title: 'Tab 1',
header: false,
html:'Hello',
border: false
},{
title: 'Tab 2',
header:false,
html: 'Something useful would be in here.
',
border: false
},{
title: 'Tab 3',
header:false,
html: 'Something useful would be in here.
',
border:false
}]
}),

And Instead of using
html: 'blablabla...',
I want to request an html page in my website, save it in a var, and use
html: myvar_contain_html_code

Is there a way to do this ?

Thanks !

plalx
9 Nov 2010, 8:38 AM
Instead of using the html config option, can't you just use autoLoad: 'yoururl.html' ?
That will load the content of your html page into the panel's body automatically.