Top
Interstage Studio User's Guide
FUJITSU Software

2.3.6 Creating the JavaScript

To create a JavaScript file, use the JavaScript wizard to generate the JavaScript file, then use the JavaScript editor or similar to edit the file. The method is described below.

Creating a New JavaScript File

From the [New] wizard, select [JavaScript] > [JavaScript Source File], and the wizard creates the JavaScript file. Refer to the following for the wizard settings:

Editing the JavaScript File

Use the JavaScript editor to edit a JavaScript file. The JavaScript editor has the following features:

Validating the JavaScript

Verification of the description contents of JavaScript files is performed by a JavaScript validator. JavaScript files must be stored in the folder specified as the JavaScript source folder.

To specify the JavaScript source folder, follow the procedure below:

  1. In the Project Explorer, select the target project.

  2. From the context menu, select [Properties].

  3. The [Properties] dialog box is displayed. In the left trees view, select [JavaScript] > [JavaScript Libraries].

  4. In the [JavaScript Libraries] page, select the [Source] tab, then add the JavaScript source folder.

Point

In the case of a JavaScript project, the folder is set as the JavaScript source folder by default.

Note

Semantic analysis of JavaScript is not performed. As a result, the settings on the [Preferences] page or the [JavaScript] > [Validator] > [Errors/Warnings] page of the project [Properties] page may not be enabled.