|
Home » Development Area » DigiGuide Script » API Index » Class: App » addEventHandler Method
Class App : addEventHandler Method
| void addEventHandler( String eventName, Function callbackFunction, [ Integer orderNo ] ) |
Summary
Add an event handler into the system
Parameters
| Parameter | Description |
| 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
onInPlaceDescriptionToolbar
onNewListingsProcessingFinished
onTrayIconRightClick
Requirements
1110
(Last updated: July 04, 2008 15:18:19)
|
|