Get Started
Plugins
Macros
More information

window.Asc.plugin.callModule (url, callback, isClose)

Description

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

Parameters
Name Description Type
url The resource code url. string
callback The result that the method returns. function
isClose 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. boolean
Example
window.Asc.plugin.callModule("./templates/" + _templates[_index][0] + "/script.txt", function(content) {
    _templates_code[_index] = content;
});