OnNewJob Event



 
Fires when a new print job has been created.


Syntax

    SiteKiosk.Printer.OnNewJob = handler
    
Parameters
    printer PrinterInfo object that contains the parent printer of the new job.
    job JobInfo object that contains the new job.
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example displays the parent printer name and the ID of the new job.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.Printer.OnNewJob = OnNewJob;
    function OnNewJob(printer, job)
    {
       pName = printer.PrinterName;
       jID = job.JobId;
       alert("New job: " + jID + " of printer " + pName);
    }
    </SCRIPT>

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

Back to top