Scripting

Previous Next

See Also

You can include scripts in web pages that are executed with or without without web server interaction. You can use JavaScript (default) or VBscript. These scripts can be executed on certain events. For example:

· When the user clicks or double-clicks an object (the onclick event type).

 

· When the user presses a key over an object (onkeypress).

 

· When the user moves the mouse over the object (onmouseover).

 

· After the browser has finished loading a web form (onload).

Furthermore, you can provide contextual information for an event, for example:

keyVal="65" ctrlKey="true"

The arguments supported as contextual information are:

Argument

For Event Types:

Values

keyVal

Text events like keypress, keyUp, keyDown

ASCII

ctrlKey

Text events and mouse event types like onclick and mouseover.

true/false

altKey

Text events and mouse event types.

true/false

shiftKey

Text events and mouse event types.

true/false

 

To add scripts to web pages, you need to insert an Event Listener object with a callClientScript action with a Script property. See: How to Add a Script to an Object.

If you want to refer to the event target in a script, you can use the caller keyword. For example:

SetBackGroundToRed(caller)

For a specific page, you can also include a script with generic functions in the top section of the generated HTML document..

Related Topics:

How to Add a Script to an Object

How to Add a Script with Functions in the Top Section of an HTML Document

Scripting Example: The Period Case

Scripting Example: Client Check on a Mandatory Field

AJAX Technology

Executing SQL Statements From a Web Page

Action Scripts

Setting, Getting, and Displaying Values and Variables

The Interface.js JavaScript File

Variable Sets

Sharing Catalog Items

Calling Info Pages with URL Query Parameters