SiteKiosk Documentation
One Step Back

OnCardInserted Event




Fires when a SmartCard is inserted.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("ACOS").OnCardInserted = handler
Parameters
    ctypeLong value that contains the type of the inserted card.
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example shows an alert window when a SmartCard is inserted.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    smartcard = SiteKiosk.Plugins("SiteCash").Devices("ACOS");
    smartcard.OnCardInserted = OnCardInserted;
    function OnCardInserted(cardtype)
    {
       alert(cardtype + " card inserted");
    }
    </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 -