DOM Events"
From Documentation
m |
m |
||
Line 5: | Line 5: | ||
A DOM event (<javadoc directory="jsdoc">jq.Event</javadoc>) is the DOM-level event that is usually triggered by the browser. It is usually listened by the implementation of a widget, rather than the client application. | A DOM event (<javadoc directory="jsdoc">jq.Event</javadoc>) is the DOM-level event that is usually triggered by the browser. It is usually listened by the implementation of a widget, rather than the client application. | ||
− | Since ZK Client Engine intercepts most DOM events and encapsulate them into the widget events, it is suggested to listen the widget events, if possible, for better performance (by overriding the corresponding methods, such as <javadoc method="doClick_(zk.Event)" directory="jsdoc">zk.Widget</javadoc>). | + | Since ZK Client Engine intercepts most DOM events and encapsulate them into the widget events, it is suggested to listen the widget events, if possible, for better performance (by overriding the corresponding methods, such as <javadoc method="doClick_(zk.Event)" directory="jsdoc">zk.Widget</javadoc>). For more information, please refer to [[ZK Client-side Reference/Notifications/Widget Events|the previous section]]. |
= How to Listen and Unlisten = | = How to Listen and Unlisten = |
Revision as of 07:49, 20 December 2010
A DOM event (Event) is the DOM-level event that is usually triggered by the browser. It is usually listened by the implementation of a widget, rather than the client application.
Since ZK Client Engine intercepts most DOM events and encapsulate them into the widget events, it is suggested to listen the widget events, if possible, for better performance (by overriding the corresponding methods, such as Widget.doClick_(Event)). For more information, please refer to the previous section.
How to Listen and Unlisten
There are two different approaches to listen a DOM event: Widget.domListen_(DOMElement, String, Object) and jQuery (jq).
Use domListen_ and domUnlisten_
Use jQuery
When to Listen and Unlisten
Version History
Version | Date | Content |
---|---|---|