PDA

View Full Version : How to dynamically change BodyCfg src in Panel



sam.arulprakash
5 Jul 2010, 11:08 PM
Hi all,

How to change the src in bodyCfg dynamically in panel.
Please Post your suggestions.
Thanks in advance.

PanelEast =new Ext.Panel
({
bodyCfg:
{
tag: 'iframe',
src:'http://localhost/controls/DHD.aspx',
frameborder: 0,
autoScroll:true,
autoWidth:true,
autoHeight:true
}
});

Thanks & Regards,
Arul Prakash.M

Condor
5 Jul 2010, 11:12 PM
1. Remove autoScroll:true, autoWidth:true and autoHeight:true (these are not attributes of an IFRAME tag!).
2. You can use:

PanelEast.body.dom.src = 'other-page.aspx';

sam.arulprakash
6 Jul 2010, 12:04 AM
Thanks Condor for your valuable suggestions