TX Text Control .NET Server

RequestFrameBaseCallback Function

Function

Description

Callback function for requests retrieving a FrameBase object from a frame collection.

Syntax

function(<FrameBase> frame)

Examples

The following example demonstrates RequestFrameBaseCallback in a practical document-editing workflow. Callback function for requests retrieving a FrameBase object from a frame collection.

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

function requestFrameBaseCallback(frame) {
    console.log("frame:", frame);
}

function useRequestFrameBaseCallback(frames) {
    frames.getItem(requestFrameBaseCallback, onTxError, 25);
}