TX Text Control .NET Server

Javascript: BarcodeFrame.refresh Method

Method|Introduced in 28.0

Description

Refreshes the barcode.

Syntax

<void> BarcodeFrame.refresh([<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Optional. Is called when the operation completed.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates BarcodeFrame.refresh in a practical document-editing workflow. Refreshes the barcode.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function refresh(barcodeFrame) {
    barcodeFrame.refresh(
        function() {
            console.log("refresh completed.");
        },
        onTxError
    );
}