Toolbar Browser
3. Reference
Triggers
Controls
TOOLBAR
CONTROL
BUTTON
MENU
SUBMENU
OPTION
SEPARATOR
COMMAND
COMMANDS
MENUDEFINITIONS
UNINSTALL
Common Parameters
TIMER
Variables
System Variables
Global Values
Functions
Text Functions
 

TIMER

Defines an event timer.

Event timers execute a specific action or a set of command in regular intervals based on the delay value.

Syntax:

    <TIMER
      id=""
      delay=""
      action="">

    </TIMER>


Parameters:

    id - Timer ID. This parameter is required and must have a unique value.
    delay - Timer delay in seconds.
    action - Action to execute. Can contain a URL, or one or more semicolon separated functions.


Remarks:

  • The minimum time delay is 1 second.
  • An event timer must have a unique id specified.
  • You can use timers to import data from XML files. This can be very useful to update real-time statistics such as stock quotes, Pay Per Click bids, news headlines etc. You can also use a timer to refresh the current page to prevent inactivity logouts.
  • Initially the action is executed for the first time after the specified time delay.


Example:

    This example creates a timer to update a toolbar button caption with the current time. The caption is updated once every second.


    <xml id="toolbar">
    <toolbar caption="Timer Example">
    <control type="toolbar">

      <button id=time caption="$DD $MON $HH:$MI:$SS" tooltip="The current time is: $HH:$MI:$SS"></button>

    </control>
    </toolbar>

    <commands>

      <timer id=settime delay=1 action="SetCaption(time,'$DD $MON $HH:$MI:$SS')"></timer>

    </commands>
    </xml>