bart
30 Dec 2009, 1:20 AM
Hello,
I have a problem after upgrading ExtJs from 3.0 to 3.1 in IE7 and IE 8 (Firefox works properly).
I have a code, which creates new tab in TabPanel and makes it active. It looks working properly when adding one new tab, but when I try to open more tabs in loop it opens only one tab. Code look something like this (I've shortened it, because it's much longer)
for (var i=0; i<selectedProducts.length; i++) {
panel.add({...});
panel.setActiveTab(newPanelId);
}
The problematic function is setActiveTab (or activate - I tried these two functions with every possible manner). When I remove line with setActiveTab it works properly (of course without setting tabs as active). When I tried to add alert() function after setActiveTab it doesn't throw any message so the code must break after setActiveTab function.
In IE 8 I don't get any exception, in IE 7 it's only 'unknown runtime error'.
I have a problem after upgrading ExtJs from 3.0 to 3.1 in IE7 and IE 8 (Firefox works properly).
I have a code, which creates new tab in TabPanel and makes it active. It looks working properly when adding one new tab, but when I try to open more tabs in loop it opens only one tab. Code look something like this (I've shortened it, because it's much longer)
for (var i=0; i<selectedProducts.length; i++) {
panel.add({...});
panel.setActiveTab(newPanelId);
}
The problematic function is setActiveTab (or activate - I tried these two functions with every possible manner). When I remove line with setActiveTab it works properly (of course without setting tabs as active). When I tried to add alert() function after setActiveTab it doesn't throw any message so the code must break after setActiveTab function.
In IE 8 I don't get any exception, in IE 7 it's only 'unknown runtime error'.