TX Text Control .NET Server

Javascript: TXTextControl.getFileDirectory Method

MethodDeprecated|Introduced in 24.0

Description

Obsolete. This method will be removed in one of the next versions. Requests the directory path where the files of a specific file type are stored on the web server.

Syntax

<void> TXTextControl.getFileDirectory(<FileType> fileType, <RequestStringCallback> callback)

Parameters

ParameterDescription
fileType

Must be one of the FileType values.

callback

Is called with a string containing the file directory of the requested file type on the web server as soon as the information has been retrieved from the server.

Examples

The following example demonstrates TXTextControl.getFileDirectory in a practical document-editing workflow. Obsolete. This method will be removed in one of the next versions. Requests the directory path where the files of a specific file type are stored on the web server.

TXTextControl.getFileDirectory(
    TXTextControl.FileType.Document,
    function(result) {
        console.log("get file directory result:", result);
    }
);