DOM Events

From Documentation


There are two kinds of events at the client side: widget events (Event) and DOM events (Event). A widget event is triggered by a widget or an application, while a DOM event is triggered by the browser.

Widget Events

A widget event is the widget-level event. Like Event at the server side, the widget event is usually triggered to a widget (and an application) to notify a widget-level event, such as a window has been moved.

A widget event will be propagated to the parent widget, parent's parent and so on, until stopped (Event.stop(Map)). Then, if the event is required by the server, it will be sent to the server, and converted to an instance of AuRequest at the server[1].

To fire a widget event, you could invoke Widget.fire(String, Object, Map, int) or Widget.fireX(Event, int).

To listen a widget event, you could invoke Widget.listen(Map, int).

DOM Events

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.

How to Listen and Unlisten

Override Particular Methods

Use jQuery

When to Listen and Unlisten

Version History

Last Update : 2010/12/20


Version Date Content
     



Last Update : 2010/12/20

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.


  1. For more information, please refer to the AU Requests section.