ProtectDialog Method



 
The ProtectDialog method can protect a dialog from being closed on screen saver activation.


Syntax

    [obj=] SiteKiosk.SiteKioskUI.ProtectDialog(dialogID, protect)
Parameters
    protect Long value that contains the ID of the dialog to protect.
    dialogID Boolean value that specifies if the dialog is protected from being closed on screen saver activation.
Return Value
    None.
Remarks
    By default the protect parameter is considered to be set to false. Therefore all dialogs for which this method has not been called will be closed on screen saver activation.
Examples
    The following example creates a HTML dialog and protects it from being closed on screen saver activation.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    mydialog = SiteKiosk.SiteKioskUI.CreateHTMLDialog();
    SiteKiosk.SiteKioskUI.ProtectDialog(mydialog.DialogID, true);
    mydialog.URL = "http://www.myaddress.com";
    mydialog.ShowDialog();
    </SCRIPT>
    

Applies to
    SiteKiosk v8.7 (and later versions).

Back to top