{dialog.object}loadJavascriptFile Method
Syntax
{dialog.object}.loadJavascriptFile(javascriptFilename [, callback]);
Arguments
- javascriptFilenameString
A relative or absolute URL that specifies the JavaScript file to load.
- callbackFunction
A function to call after the JavaScript file has loaded.
Description
Loads an external JavaScript file.
Discussion
The {dialog.object}.loadJavascriptFile() method loads an external JavaScript file. You can specify an optional function to call when the file has finished loading. The callback function is typically used to initialize a library after it has been loaded or serially load another JavaScript file.
Example
var done = function() {alert('AngularJS Library Loaded.');}; {dialog.object}.loadJavascriptFile("https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js",done);