Portlet Factory, Version 6.1.2
Client JavaScript builder
Use the Client JavaScript builder to add client-side JavaScript to a specified page in a model. The builder places a pair of <SCRIPT> tags in the model. The information you enter or reference in the JavaScript field is placed between these tags. For example, if you enter alert("Hello World"); in the JavaScript field. The following code is created by the builder to display a Windows alert box:
<script name="AlertWindow" language="JavaScript"> alert("Hello World") </script>AlertWindow is the span tag assigned to the Client JavaScript builder.
Quick tips
- You can only use client-side JavaScript with this builder.
- In the JavaScript field you can create functions and make calls to other client-side JavaScript functions that are loaded when the page is rendered.
Parent topic: Builder help
- About using the builder call editor
The builder call editor allows you to specify all the input values to a builder call.
- Locating control builder calls on pages
Each page location technique results in the generation of a Page Location string that determines on what pages, and where on those pages, the control builder calls are added.
- Client JavaScript builder inputs
This topic describes the inputs for the Client JavaScript builder.
- JavaScript guidelines: coding defensively
Coding your model defensively prevents script errors.
Library | Support |