reveal

Open a popup with the specified ID, or bring the tab with the specified ID to the foreground.

This function is especially useful for tab sets that have their placement set to the center, meaning that there are no tabs showing for users to click. Using the reveal function is the only way to display the specified tab.

Syntax

ogscript.reveal (User Interface ID);

Parameters

Parameter

Type

Required

Description

User Interface ID

String

Yes

ID of the popup to open or the tab to bring to the foreground.

Returns

N/A


 

Example

This example includes a definition for a set of tabs with its position set to center, and uses the ogscript.reveal function to select a particular tab to be shown.

Tip: When tab position is set to center, tabposition="none" in the tab set’s XML source code.

<tab height="91" left="580" tabposition="none" top="373" width="221">

<abs id="page1" name="Tab 1"/>

<abs id="page2" name="Tab 2"/>

<abs id="page3" name="Tab 3"/>

</tab>

 

//Select Tab2 ogscript.reveal('page2');