GetCodeByName Method
The GetCodeByName method returns a code by name.
Syntax
[obj=] SiteCafe.Server.Codes.GetCodeByName(name)
|
Parameters
name |
String that specifies the code name. |
Return Value
Returns a Code object representing the specified code.
Remarks
Examples
The following example displays the account index number of the code 'CodeName'.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
code = SiteCafe.Server.Codes.GetCodeByName("CodeName");
alert(code.AccountIndex);
</SCRIPT>
|
Applies to
SiteKiosk v6.2 (and later versions).
Back to top