SiteKiosk Documentation
One Step Back

OnMessage Event




Fires when a log file entry is added.


Syntax

    SiteKiosk.Logfile.OnMessage = handler
Parameters
    sequencenoLong value that contains the ID.
    timeDate value that contains the time.
    utcoffsetLong value that contains the utc offset.
    awtypeLong value that contains the type.
    awlevelString value that contains the level.
    facilityString value that contains the facility.
    textString value that contains the text.
Remarks
    See the LogMessage object for further information about the parameters.

    Use the DateTimeFormatter object to format the date.

    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example shows information about every log file entry.

    <div id="id_log"></div>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.Logfile.OnMessage = OnMessage;
    function OnMessage(seq, time, utcoff, awtype, awlevel, facility, text)
    {
       id_log.innerHTML = "SequenceNo: " + seq +
                          " Time: " + time +
                          " UTC offset: " + utcoff +
                          " awtype: " + awtype +
                          " awlevel: " + awlevel +
                          " facility: " + facility +
                          " text: " + text;
    }
    </SCRIPT>

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

Back to topVolver arriba

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