GetCoinImageFilename Method
The GetCoinImageFilename method determines the filename of the specified coin or note image.
Syntax
[str=] SiteKiosk.Plugins("SiteCash").GetCoinImageFilename(iso, val, note)
|
Parameters
iso |
String that contains the ISO code. |
val |
Currency value that contains the coin or note value. |
note |
Boolean value that specifies whether the value is a note. |
Return Value
Returns a String that contains the filename of the coin or note image.
Remarks
Use the CurrencyFormatter object for currency functionality.
The coin and note images filenames are saved in the configuraton.
Examples
The following example shows the filename of a coin image in an alert window.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
scash = SiteKiosk.Plugins("SiteCash");
imgfile = scash.GetCoinImageFilename("50 Cent", 0.50, false);
alert(imgfile);
</SCRIPT>
|
Applies to
SiteKiosk v6.0 (and later versions).
Back to top