Creating a new script

When you select New Script from the pop-up menu in the integrated Script editor, the script is inserted in the Body section, after any existing scripts. If the script needs to be in the Head section, you can switch to Source view and move the script. In Source view, you can insert scripts anywhere in the document.

StepsTo create a new top-level script in the HTML document:

  1. Right-click in the script editor.

  2. Select New Script from the pop-up menu and choose Server or Client from the cascading menu.

  3. If you select Server, choose the target application server from the cascading menu.

    Your choice of server affects the type of delimiter used for the script. When you choose Web Target and then create a script using the Web Target object model, you can deploy the page to any supported server type.

    For information about writing server scripts, see Chapter 7, “Working with Application Servers and Transaction Servers,” and Chapter 9, “Developing 4GL JSP Pages.”

StepsTo create a script in a separate file:

  1. Select File>New from the menu bar.

  2. In the New dialog, click the Web tab.

  3. On the Web tab page, double-click the Script icon.

    The Web Script editor displays in its own window, not as a pane within the HTML editor.