Skip to content

OnTimer - cWebTimer

Triggered when timer fires

Type: Event

Syntax

Procedure OnTimer

Description

Timer events can be handled on the server by writing DataFlex code. A timer event can also be handled on the client (browser) by writing JavaScript code. Writing a server-side DataFlex handler is the simplest way to handle timer events.

Write an OnTimer event handler to perform the required action each time the timer is fired.

To write a client-side button OnTimer handler using JavaScript, set the psClientOnTimer property to the name of the JavaScript function that will execute when the timer is fired.

Set pbServerOnTimer to False to prevent the OnTimer event from being sent to the server. By default, pbServerOnTimer is True.