Skip to content

script.library

This function is used to import another javascript file which has been uploaded to the server via FTP.

This provides all the library functions and variables from within the chosen library to the processes available functions and variables.

js
script.library(pathToJSFile)

Parameters

  • pathToJSFile - The relative path from the MODLR FTP Root Directory.

Example

js
script.library('dimension-functions.js');

This will open the file called dimension-functions.js found in the root directory of the MODLR ftp server.