Notifications"

From Documentation
Line 1: Line 1:
 
{{ZKClient-sideReferencePageHeader}}
 
{{ZKClient-sideReferencePageHeader}}
  
In this section we discuss the important system utilities.
+
In this section we discuss the notifications at the client side.
  
They are mainly used for component development. Application developers ''rarely need'' it.
+
There are three ways to notify: widget events (<javadoc directory="jsdoc">zk.Event</javadoc>), DOM events (<javadoc directory="jsdoc">jq.Event</javadoc>) and client activity watches.
  
For a complete reference, please refer to [http://zkoss.org/javadoc/latest/jsdoc/ JavaScript APIs].
+
A widget event is triggered by a widget or an application, while a DOM event is triggered by the browser.
 +
 
 +
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.
 +
 
 +
A client activity watch is a notification for special activities that are not available as DOM events or widget events. For example, the notification when a widget is becoming invisible.
 +
 
 +
They are mainly used for component development. Application developers ''rarely need'' it. For a complete reference, please refer to [http://zkoss.org/javadoc/latest/jsdoc/ JavaScript APIs].
  
 
{{ZKClient-sideReferenceHeadingToc}}
 
{{ZKClient-sideReferenceHeadingToc}}
 
{{ZKClient-sideReferencePageFooter}}
 
{{ZKClient-sideReferencePageFooter}}

Revision as of 06:14, 20 December 2010


Notifications



In this section we discuss the notifications at the client side.

There are three ways to notify: widget events (Event), DOM events (Event) and client activity watches.

A widget event is triggered by a widget or an application, while a DOM event is triggered by the browser.

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.

A client activity watch is a notification for special activities that are not available as DOM events or widget events. For example, the notification when a widget is becoming invisible.

They are mainly used for component development. Application developers rarely need it. For a complete reference, please refer to JavaScript APIs.




Last Update : 2010/12/20

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