SecondMonitorBrowser Object



 
The SecondMonitorBrowser object controls the SiteKiosk Player on the second monitor.


Members Table

    The following table lists the members provided by the SecondMonitorBrowser object.

    Members
    Properties Description
    Active Indicates whether the 2nd monitor is active.
    Enabled Indicates whether the 2nd monitor is enabled.
    IsSKPlayer Indicates whether the SiteKiosk player runs on the 2nd monitor.
    Methods Description
    Navigate Navigates to a specified address.

Remarks
    This object is available through the main object SiteKiosk. Use the SecondMonitorBrowser object to control the SiteKiosk Player on the second monitor.

    Note that the path of a file using SiteKiosk objects must be allowed in the
    SiteKiosk configuration (Security -> Access -> URL's With Script Permission)
    if it is not a browser skin file.
Examples
    The following example checks the availability of the SiteKiosk Player on the second monitor and navigates to a specified URL.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    lb_2ndMonBrowserEnabled = false;
    lb_2ndMonBrowserActive = false;
    lb_2ndMonBrowserIsSKPlayer = false;
    if(SiteKiosk.SecondMonitorBrowser.Enabled)
    	lb_2ndMonBrowserEnabled = true;
    if(SiteKiosk.SecondMonitorBrowser.Active)
    	lb_2ndMonBrowserActive = true;
    if(SiteKiosk.SecondMonitorBrowser.IsSKPlayer)
    	lb_2ndMonBrowserIsSKPlayer = true;
    if(lb_2ndMonBrowserEnabled == true && lb_2ndMonBrowserActive == true 
    && lb_2ndMonBrowserIsSKPlayer == true)
    	SiteKiosk.SecondMonitorBrowser.Navigate
    	("http://www.provisio.com/");
    else
    	SiteKiosk.Logfile.Notification("2nd Monitor Enabled: " + 
    	lb_2ndMonBrowserEnabled + ", Active: " + 
    	lb_2ndMonBrowserActive + ", SKPlayer: " + 
    	lb_2ndMonBrowserIsSKPlayer);
    </SCRIPT>

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

Back to top