Plugins Collection



 
The Plugins collection provides access to all SiteKiosk plugins.


Members Table

    The following table lists the members provided by the Plugins collection.

    Members
    Objects Description
    SiteCam Information about the Webcam plugin.
    SiteCash Controls the Payment Module plugin.
    SiteCoach Controls the Content Filter plugin.
    SiteDog Information about the Hardware Watchdog plugin.
    SitePhone Controls the Voice over IP plugin.
    SiteRemote Information about the SiteRemote plugin.
    Properties Description
    Count Contains the number of plugins.
    Methods Description
    Item Returns one item of the collection.

Remarks
    This collection is available through the main object SiteKiosk. Use the Plugins collection to receive the number of plugins and information about them.

    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 enumerates all plugins and shows which of them are enabled.

    <html>
    <body>
    <table border="0" bgcolor="#ebebeb" width="600" cellspacing="5"
    cellpadding="5" style="font-family:verdana;font-size:8pt;"
    align="center">
    <tr><td bgcolor="f8f8f8">
    The following example shows which plugins have been enabled
    in the configuration.
    </td></tr>
    <tr><td style="font-family:verdana;font-size:8pt;">
    <pre>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    for (var i = 1; i <= SiteKiosk.Plugins.Count; ++i)
    {
       if (SiteKiosk.Plugins.Item(i).Enabled)
       pactstatus = "<b>Activated</b>";
       else pactstatus = "Deactivated";
       if (i != 1) document.writeln("");
       document.write(SiteKiosk.Plugins.Item(i).Name +
       ": " + pactstatus);
    }
    </SCRIPT>
    </pre>
    </td></tr>
    </table>
    </body>
    </html>
    

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

Back to top