Class App : addEventHandler Method


void addEventHandler( String eventName, Function callbackFunction, [ Integer orderNo ] )

Summary

Add an event handler into the system


Parameters

ParameterDescription
String eventName The name of the event you wish to hook into.
Function callbackFunction Function you'd like to have called whenever the event is fired.
Integer orderNo [optional] Order number you'd liek to use to hint that your callback should be called in. By default all events are added equally.


Examples

The code below will display an alert box once the listings download has finished and any new listings have been fully processed.

function onMyNewListingsProcessingFinished( )
{
alert( "Listings are finished downloading and being absorbed...w00t!" );
}

app.addEventHandler( "onNewListingsProcessingFinished", onMyNewListingsProcessingFinished )


See Also

  • App : removeEventHandler
  • onDigiGuideStartupComplete
  • onDrawGridAddition
  • onInPlaceDescriptionToolbar
  • onNewListingsProcessingFinished
  • onTrayIconRightClick


    Requirements

    1110