TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

callModule

callModule(url, callback, isClose)

Defines the method used to execute a remotely located script following a link.

Parameters:

Name Type Description
url string

The resource code URL.

callback function

The result that the method returns.

isClose boolean

Defines whether the plugin window must be closed after the code is executed or left open waiting for another action. The true value is used to close the plugin window after executing a remotely located script. The false value is used to execute the code and leave the window open waiting for the next action.

Returns:

This method doesn't return any data.

Example

Copy code
window.Asc.plugin.callModule("./templates/" + _templates[_index][0] + "/script.txt", function(content) {
    _templates_code[_index] = content;
});