Running Custom JavaScript Files
Custom JavaScript™ can also be loaded from attached JavaScript files. Any .js file that is added to the application in the section is automatically loaded into your running application. An associated JavaScript file is evaluated once when the browser first loads the running application, and is not called in response to any events.
Variable | Full name | Description | Example | Type |
---|---|---|---|---|
app | Application object | Contains functions for accessing global general information |
|
GUI |
When JavaScript security is enabled: For added security, external JavaScript files that are referenced by URL do not load into the running application. Uploaded JavaScript files are evaluated in a safe sandbox and all content must adhere to the restrictions of the sandbox. See JavaScript Security for more details. For example, functions must be defined by using the following format: app.getSharedData().blat = function (...) { ... }
When JavaScript security is disabled: External JavaScript files that are referenced by URL are loaded by
using a <script>
tag and does not have access to the app
variable. These scripts must use window.NitroApplication to access the
Domino Volt
API functions. JavaScript files that are uploaded to the
application are evaluated by using the eval()
function.