PDA

View Full Version : Conditions in Panel



thiszparveen
30 Nov 2012, 9:07 AM
Hi,

I wanted to show two buttons called "A" and "B" in a simple EXT js panel. When a button "A" is clicked, i need to show an IFrameA and when the button "B" is clicked i need to show IFrameB.

How can i add conditions here. Could any one help me on this?

var panel = new Ext.Panel({
renderTo: '#divName#',
html : "<iframe src="http://www/google.com" width='800' height='300'></iframe>"
});

mitchellsimoens
30 Nov 2012, 1:44 PM
What framework and version are you using?

thiszparveen
1 Dec 2012, 1:43 AM
EXT JS 3.4

willigogs
1 Dec 2012, 11:55 AM
On the button handlers, simply use the panel's update method:
http://docs.sencha.com/ext-js/3-4/#!/api/Ext.Panel-method-update

thiszparveen
4 Dec 2012, 7:13 AM
I resolved it. Thank you