SiteKiosk Documentation
One Step Back

CurrencyFormatter Object




The CurrencyFormatter object contains the SiteCash currency environment.


Members Table

    The following table lists the members provided by the CurrencyFormatter object.

    Members
    PropertiesDescription
    CurDigitsNumber of digits after the comma.
    CurrencySymbolCurrency symbol.
    ISOCodeCurrency ISO description.
    SymPlacementSymbol placement position.
    MethodsDescription
    FormatFormats a long value into a string.
    Format2Formats a double value into a string.
    InitializeInitializes the CurrencyFormatter.
    ParseStringFormats a string into a long value.
    ParseString2Formats a string into a double value.
    SetLCIDSets the locale ID.

Remarks
    This object is returned by the SiteCash.CreateCurrencyFormatter or SiteCafe.CreateCurrencyFormatter method. Use the CurrencyFormatter object to determine or change the way you want the currency information to be displayed.

    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 shows the currency symbol in an alert window.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    mycfm = SiteKiosk.Plugins("SiteCash").CreateCurrencyFormatter();
    alert(mycfm.CurrencySymbol);
    </SCRIPT>
    

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

Back to topVolver arriba

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