AddClickCallback

Used to respond to click events from Button, Image, or HyperLink controls.

Parameters

Name Type Description
fieldName String The name of the field to find.
callback Function The function to be invoked when the control is clicked.

Return Value

Result Value
(none)  

Example

This example registers a named function to be called on click:

function customClickCallback()
{
    RefreshWidget( "DataGrid" );
}

AddClickCallback("Refresh", customClickCallback);

Comments

Callbacks are invoked in the order in which they are added.