PDA

View Full Version : include an other html- file



Generic1
28 Jul 2009, 12:36 AM
Hello,

I now have the following methode (a little bit changed from this example: http://extjs.com/deploy/dev/examples/tabs/tabs-adv.html (http://extjs.com/forum/../deploy/dev/examples/tabs/tabs-adv.html) )

so in this line: html: htmlcode I can put my html- code, now I will include a whole html- site. how can I do this. Do I have to put the whole html- code here or is there a better possibility with Ext 3.0



function addTab(title, htmlcode) { // tab generation code
tabs.add({
title: title,
iconCls: 'tabs',
html: htmlcode,
closable:true
}).show();
}

Generic1
28 Jul 2009, 1:26 AM
Is there no posibility to link to any other html- site in the line "html:"?
Thanks a lot,
All the best,
Generic,

tryanDLS
28 Jul 2009, 6:43 AM
If you want to include an entire page e.g. with html/body tags you must do it an iframe. You might want to look at the ManagedIFrame extension.