:: Forum >>

changing tabs programmatically

How does one tab from pagr to page programaticall?

I tried obj.setSelectedItems([1]); but this only cycle through the actual tabs without changing the pages and

I tried obj.setCurrentItem(1); which doesn't seem to do anything.

What am I missing.

Ira
Ira Berkowitz
Wednesday, February 7, 2007
The tab control does not do anything with the pages. If you want to navigate to another page or change a part of the current page you have to attach some javascript code to the onCurrentItemChanged event -

tabs.onCurrentItemChanged = function(i) {
        container.innerHTML = ...;
}


see /examples/new/dialog.htm (at the end of the file).
Alex (ActiveWidgets)
Thursday, February 8, 2007
lets say i want to have a button on tab page 1 that, when clicked, switches the tab to page 3. can that be accomplished?
Ira Berkowitz
Friday, February 9, 2007

This topic is archived.


Back to support forum

Forum search