PDA

View Full Version : URL in panel or iframe



Tchinkatchuk
20 Jun 2013, 3:27 PM
Hi all,

I need to display an html page in my app. I was thinking about panel.
I am doing this :

dynamicPanel = new Ext.Panel({ region:'center',
loader: {
url: 'http://www.xxx.dev/data_dev.php/export',
autoLoad: true,
scripts: true
}
});
Ext.getCmp('pim-view-export-panel-id').add(dynamicPanel);

Unfortunately, no css or js is interpreted.
The best for me wuld be an iframe.

Could anyone help me with some advices on this issue. It will save my days and nights :)

Sylvain

Tchinkatchuk
20 Jun 2013, 3:35 PM
I'v just found it.

dynamicPanel = new Ext.Component({ autoEl: {
tag: 'iframe',
style: 'height: 100%; width: 100%; border: none',
src: 'http://www.xxxx.dev/data_dev.php/export'
},
height: 600,
id: 'data_export_iframe',
width: 600
});
Ext.getCmp('pim-view-export-panel-id').add(dynamicPanel);