| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

EventHandler

Page history last edited by PBworks 17 years, 11 months ago


 

EventHandler

(extends Object)


Object Summary

 

EventHandler is used to attach / detach events to DHTML objects in a cross-browser manner.

 

The object is vastly used in view parts of sardalya (such as DropDownMenu, CollapseManager, FormField) where the GUI interacts with user.


Constructor

This object has no constructor. It is statically accessed.


Methods

 

EventHandler.addEventListener(elmID,strEventType,fncEventListener,blnBypassRegistry)

 

parameters

elmID - The String index or object reference of the object to attach an event.

strEventType - The type of the event (such as "click", "mousemove" or "mouseover").

fncEventListener - Reference to the listener method.

blnBypassRegistry - (optional) If true, a record is not added to the EventRegistry for later detachment of event at window unload (if no parameter is specified, the default value is assumed to be false).

 

comments

Adds an event listener.


EventHandler.removeEventListener(elmID,strEventType,fncEventListener)

 

parameters

elmID - The String index or object reference of the object to attach an event.

strEventType - The type of the event (such as "click", "mousemove" or "mouseover").

fncEventListener - Reference to the listener method.

blnBypassRegistry - If true, a record is not added to the EventRegistry for later detachment of event at window unload (if no parameter is specified, the default value is assumed to be false).

 

comments

Detaches an event listener.


See Also

 

EventObject

EventRegistry

EventModel


Usage Examples

 

Comments (0)

You don't have permission to comment on this page.