SiteKiosk Documentation
One Step Back

ACOS Object




The ACOS object controls the ACOS SmartCard device.


Members Table

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

    Members
    ObjectsDescription
    CustomerDataInformation about the card owner.
    PropertiesDescription
    BalanceCurrent credit on SmartCard.
    MethodsDescription
    CreditIncreases the saved credit.
    DebitDecreases the saved credit.
    IsCardInsertedReturns whether a SmartCard is inserted.
    IsCardValidReturns whether the inserted card is valid.
    EventsDescription
    OnCardInsertedFires when a card is inserted.
    OnCardRemovedFires when a card is removed.
    OnTransactionFinishedFires when a transaction has been finished.
    OnUserDataReadyFires when user data has been read from the SmartCard.

Remarks
    This object is available through the collection Devices. Use the ACOS object to check for a SmartCard, to change the credit or to get or set information about the owner.
    This device can be activated in the SiteKiosk configuration.

    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 determines if a SmartCard is inserted and shows it in an alert window.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    smartcard = SiteKiosk.Plugins("SiteCash").Devices("ACOS");
    alert(smartcard.IsCardInserted());
    </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 -