Table Of Contents

Calling JavaScript Functions in a Web Application

Last Modified: November 16, 2020

Use a JavaScript Library Interface (JSLI) to call globally accessible JavaScript functions in your web application.

A JSLI is a document in which you create entry points, or defined calls, to JavaScript functions.

When you create a new entry point, a visual representation of the entry point appears on the software palette of the diagram. You can place and wire entry points like nodes.

As the web application executes, the entry point calls the JavaScript function. Input data passes from the diagram to the JavaScript function, and output data returns from the JavaScript function to the diagram.

Complete the following tasks to call JavaScript functions in your web application:

  1. Prepare your code(Optional)—Create wrapper code for the JavaScript file you want to use.
  2. Create a JSLI—Define the JavaScript functions you want to call in your web application.
  3. Integrate the JavaScript file into your web application—Connect the JavaScript file to your web application and create calls to the JavaScript functions you defined in the JSLI.
  4. Call an asynchronous JavaScript function(Optional)—Add code to your JavaScript file to use asynchronous JavaScript calls in your WebVI.


Search within the programming environment to access the following installed example:
  • Call JavaScript From a WebVI

After you create a JSLI and add entry points to your web application, if necessary, troubleshoot common issues with a JSLI.

Recently Viewed Topics