PDA

View Full Version : Help getting iframe to generate inside panel



kevinwmerritt
6 Dec 2010, 9:47 AM
I cannot seem to get an iframe to generate using bodyCfg. Where am I going wrong?


var customer = new Ext.Panel({
//style: 'padding: 10px;',
//scroll: 'horizontal',
height: 500,
width: 500,
layout: 'fit',
bodyCfg: {
tag: 'iframe',
src: 'http://www.google.com',
//frameborder: '0',
},
});


rootPanel = new Ext.Panel({
fullscreen: true,
layout: {
type: 'card',
align: 'stretch'
},
defaults: {
//flex: 1
},
items: [nav, customer, erfs],
dockedItems: [bottomBar]
});

Fredric Berling
6 Dec 2010, 12:13 PM
Couldnt find bodyCfg in the Sencha Touch API but this works just the same.



var customer = new Ext.Panel({
height: 500,
width: 500,
layout: 'fit',
html:'<iframe src="http://www.google.com">',
});
rootPanel = new Ext.Panel({
fullscreen: true,
layout: {
type: 'card',
align: 'stretch'
},
items: [customer]

});

kevinwmerritt
6 Dec 2010, 12:15 PM
Thanks for your help!