# OnBlockProgress Event Fires when the progress of writing blocks changes. Syntax
    SiteKiosk.CDRecording.OnBlockProgress = handler
Parameters
completed | Long value that contains the number of written blocks.
total | Long value that contains the total number of blocks.
Remarks The object that caused the event can be referenced in the event function using "this". Examples The following example displays the progress of writing blocks when recording.
    <div id="id_block">Blocks: 0 / 0</div>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    var lk_CDRecording = SiteKiosk.CDRecording;
    lk_CDRecording.OnBlockProgress = OnBlockProgress;
    function OnBlockProgress(completed, total)
    {
       id_block.innerHTML = "Blocks: " + completed + " / " + total;
    }
    </SCRIPT>
Applies to SiteKiosk v6.0 (and later versions). Back to top