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 Berkowitz
February 7,
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)
February 8,
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
February 9,

This topic is archived.

See also:

Back to support forum