PDA

View Full Version : Open Yahoo Finance within a TabPanel



Xpectis
25 Jun 2012, 3:56 AM
I would like to open Yahoo Finance within a Tab of a TabPanel (not as a separate window) Does somebody know how to do it?
Thx

scottmartin
25 Jun 2012, 7:57 AM
You can use the following:



var form = Ext.create('Ext.panel.Panel', {
title: 'Sencha.com',
html: '<iframe src="http://www.sencha.com" width="100%" height="100%" ></iframe>',
});

Ext.create('Ext.tab.Panel', {
width: 400,
height: 400,
renderTo: document.body,
items: [ form,
{
title: 'Another Website'
}]
});


Scott

Xpectis
25 Jun 2012, 11:18 PM
many thx, it is working :)