hide

Hide the popup associated with the specified ID.

Note: to use the hide function, a popup must already exist. Popups can be created only in the JavaScript source, not in DashBoard.

Syntax

ogscript.hide (Popup ID);

Parameters

Parameter

Type

Required

Description

Popup ID

String

Yes

ID of the popup to hide.

Returns

N/A

Example

This example includes two sections of XML code to be added to the .grid file. The first creates a button that opens a popup. The second creates a button that hides the popup.

//This example createsa button which, when clickedby a user, opens the popup area.

<popupid="popup1" left="20" name="Click here to open the Popup" top="25">

<abs height="300" left="200" style="bdr:etched;" top="200" width="300">

</abs>

</popup>

 

//This example createsa button which, when clickedby a user, hides the popup.

<buttonbuttontype="push" height="50" left="50" name="Click here to hide the Popup" top="500" width="200">

<task tasktype="ogscript">ogscript.hide('popup1');</task>

</button>