|
| |
COMMAND
Defines a command. Commands enable you to group functions. Once defined, commands can be executed using the Command(id) function. Syntax:
<COMMAND id="" action="" onload="" onbeginload="" onchange="" cache=""
></COMMAND>
Parameters:
| Parameter | Description
| | id | Control ID. Used to referece the control in functions.
| | action | Action to take or commands to execute when the control is activated, clicked etc.
| | cache | Cache timeout in hours.
| | onbeginload | Action to take when a new page is about to be loaded.
| | onload | Action to take when new page finishes loading.
| | onchage | Action to take when the control's value changes
|
Remarks:
- Each command must have a unique id.
- Commands should be encapsulated in the <COMMANDS>...</COMMANDS> block.
Example:
See Also:
Command() Function | COMMANDS block
|