SiteKiosk Documentation
One Step Back

GetProperties Method




The GetProperties method requests a list of user properties.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient").
    GetProperties(userIndex, nameList)
    
Parameters
    userIndexLong value that specifies the user index.
    nameListArray of Strings that specifies the list of property names.
Return Value
    None.
Remarks
    Not supported when IE9 or higher is installed, use GetProperty instead.
Examples
    The following example requests and displays the user properties 'anyProperty1' and 'anyProperty2' of the first user.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe = SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient");
    SiteCafe.OnPropertyReceived = OnPropertyReceived;
    function OnPropertyReceived(userIndex, status, name, value)
    {
       alert("Name: " + name + ", Value: " + value);
    }
    nameList = new Array("anyProperty1", "anyProperty2");
    SiteCafe.GetProperties(1, nameList);
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -