wwWebTabControl.OnClientActivate

An optional client script event handler that can be fired when a page change occurs.

The handler receives the page number that is about to be activated and should return true to indicate that the activate operation was completely handled and the original page change is not to occur. Return false or null to indicate for normal page activation logic to continue to fire.

A client handler should look like this.

function ClientActivate(num)
{
    if (num == 3)
        return false;
    else 
        ActivateTab(3);
        
    return true;    
}

This example always forces the tab page to page 4 regardless of which tab is clicked.
o.wwWebTabControl.OnClientActivate

See also:

Class wwWebTabControl

© West Wind Technologies, 1996-2022 • Updated: 04/09/08
Comment or report problem with topic