apmlaszloacct
10-29-2004, 05:52 AM
Is there a way of iterating through the tabs within a tabbed pane?
My problem is that I have two tabbed panes, if I select a tab in one tabbed pane, I need the corresponding tab of the other tabbed pane to be deselected and disabled.
I imagined a function like this:
var tabNumber = 6;
function setTabs(selectedTab){
for (var i = 0; i < tabNumber; i++){
if (tabbar1.tabs[i] = selectedTab){
tabbar1.tabs[i].setAttribute('clickable', false);
tabbar1.tabs[i].setAttribute('enabled', false);
}
else {
tabbar1.tabs[i].setAttribute('clickable', true);
tabbar1.tabs[i].setAttribute('enabled', true);
}
}
}
I know this is pseudocode - but is it possible to do something like it?
Thanks Andrew
My problem is that I have two tabbed panes, if I select a tab in one tabbed pane, I need the corresponding tab of the other tabbed pane to be deselected and disabled.
I imagined a function like this:
var tabNumber = 6;
function setTabs(selectedTab){
for (var i = 0; i < tabNumber; i++){
if (tabbar1.tabs[i] = selectedTab){
tabbar1.tabs[i].setAttribute('clickable', false);
tabbar1.tabs[i].setAttribute('enabled', false);
}
else {
tabbar1.tabs[i].setAttribute('clickable', true);
tabbar1.tabs[i].setAttribute('enabled', true);
}
}
}
I know this is pseudocode - but is it possible to do something like it?
Thanks Andrew