DS Server

RequestImageCallback Function

Function

Description

Callback function for requests creating and adding a new Image object to a image collection.

Syntax

function(<Image> image)

Examples

The following example demonstrates RequestImageCallback in a practical document-editing workflow. Callback function for requests creating and adding a new Image object to a image collection.

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

function requestImageCallback(image) {
    console.log("image:", image);
}

TXTextControl.images.getItem(requestImageCallback, onTxError, 25);