OnStatusChanged Event



 
Fires when the status of the geolocation feature changes.


Syntax

    SiteKiosk.GeoLocation.OnStatusChanged = handler
Parameters
    status Long value that contains the new status.
Remarks
    In order to be able to use this event, you must have configured a location sensor in the Windows control panel under Location and Other Sensors.

    Possible states are listed here.

    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example shows the visibility status when it has been changed.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.GeoLocation.OnStatusChanged = OnStatusChanged;
    function OnStatusChanged(status)
    {
       alert("Status: " + status);
    }
    </SCRIPT>

Applies to
    SiteKiosk v9.0 (and later versions).

Back to top