Events and Actions

Previous Next

An event handler affects when the event is triggered.  A well known example is the standard onclick event handler placed under a button, but onclick event handlers may be placed on any control and they may even be placed at window level, where every click will trigger this event handler. Some event types are only valid for a specific object, like ongetdataset for a data source.

Event Types

If a user does something in a web page, an event takes place. For example:

When the user clicks or double-clicks an object (the onclick and ondblclick 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).

You can choose all W3C standard HTML event types. There is one exception and that is onbeforesubmit: As USoft does not post any forms in pages, event handlers of this type will never trigger. See http://www.w3.org  for more information on W3C standards.

In addition, some USoft specific events are raised at certain moments. All event types are case insensitive.

It is also possible to define your own event type, and explicitly trigger that type using the handleEvent() function.

If an event of a certain type takes place, a USoft action can be performed. Multiple actions should be combined in one callClientScript action together with appropriate JavaScript.

See Also

Event Listeners and Actions

How to Insert an Event Listener

How to Insert an Action

How to Change the Parameters of an Action