-
7 Sep 2010 6:38 AM #1
Problem with tab. Hide/unhide a tab doesn't work on IE
Problem with tab. Hide/unhide a tab doesn't work on IE
Hi,
This code works fine on FF but in IE, when I click on the display tab, it correctly hide this one and show the other one but afterwards when I click on the new panel both tabs dissapears as normally It should display again the first tab.
Anyone has an idea what it could be?
Code:var tb1 = new Ext.TabPanel({ renderTo: 'ECE', id: 'tabpanel', defaults:{autoHeight: true}, border : true, items:[ { xtype: 'panel', id: 'ECE', autoLoad: {url: 'workbox1.cfm', params: 'bpcodeid=ECE', scripts: true}, title: 'Appointment Letters to Evaluation Experts', iconCls: 'plus-icon', listeners:{activate: displayTabContent1 } }, { xtype: 'panel', id: 'title1', title: 'Appointment Letters to Evaluation Experts', iconCls: 'moins-icon', html: 'content', //collapsed:true listeners:{activate: displayReduceTab1 } } ] }); tb1.getTabEl('title1').style.display = 'none'; function displayTabContent1(){ tb1.getTabEl('title1').style.display = ""; tb1.getTabEl('ECE').style.display = 'none'; } function displayReduceTab1(){ // alert("display"+ tb1.getTabEl('title')); tb1.getTabEl('ECE').style.display = ""; tb1.getTabEl('title1').style.display = 'none'; }
-
7 Sep 2010 6:51 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 44
Any reason you are not using hideTabStripItem and unhideTabStripItem?
-
7 Sep 2010 6:56 AM #3
Because I didn't know there was a possibility to do that. Actually you sent that code to use 'style.display'.
How can I use tabStripItem?
Just by calling it in my function?
-
7 Sep 2010 7:38 AM #4
Code:tb1.getTabEl('title1').style.display = "";
You're not setting the display style property. This should be block or inline-block (not sure on the browser support here).
Similar Threads
-
GeoTweet example doesn't work with an index.js using a different tab spacing?
By sonwrecka in forum Sencha Touch 1.x: DiscussionReplies: 5Last Post: 9 Aug 2010, 8:49 AM -
Updating non-active tab panel via refresh doesn't work right
By ice5nake in forum Ext 2.x: Help & DiscussionReplies: 10Last Post: 1 Apr 2009, 12:51 PM -
Append template to tab doesn't work
By wurstkuchen in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 12 Oct 2008, 10:32 AM -
Grid on tab pane, loadMask doesn't work?
By mykes in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 30 Dec 2007, 11:35 AM


Reply With Quote