# Codes Object The Codes object contains the SiteCafe codes. Members Table The following table lists the members provided by the Codes object.
Members
Methods | Description
Create | Creates a code.
CreateGroup | Creates a code group.
Delete | Delete a code.
DeleteGroup | Deletes a code group.
GetCodeByAccount | Returns a code by account.
GetCodeByIndex | Returns a code by index.
GetCodeByName | Returns a code by name.
GetCodeGroupByIndex | Returns code group by index.
GetCodeGroups | Returns a range of code groups.
GetCodes | Returns a range of codes.
Events | Description
OnCodeChanged | Fires when a code changed.
OnCodeGroupChanged | Fires when a code group changed.
Remarks This object is available through the object Server. Use the Codes object to handle SiteCafe codes. Examples The following example displays the name of the first code.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    alert(SiteCafe.Server.Codes.GetCodeByIndex(1).Name);
    </SCRIPT>
Applies to SiteKiosk v6.2 (and later versions). Back to top