Client-side Event Listening"

From Documentation
(Created page with '{{ZKComponentReferencePageHeader}} = Overview = = Declare a Client-side Listener in a ZUL Page = = Register a Client-side Listener in Client-Side JavaScript = =Version History…')
 
Line 1: Line 1:
 
{{ZKComponentReferencePageHeader}}
 
{{ZKComponentReferencePageHeader}}
 
= Overview =
 
= Overview =
 +
 +
ZK allows applications to handle events at both server and client side. Handling events at the server side, as described in the previous sections, are more common, since the listeners can access the backend services directly. However, handling event at the client side improves the responsiveness. For example, it is better to be done with a client-side listener if you want to open the drop-down list when a comobox gains the focus.
 +
 +
The rule of thumb is to use server-side listeners first since it is easier, and then improve the responsiveness of the critical part, if any, with the client-side listener.
  
 
= Declare a Client-side Listener in a ZUL Page =
 
= Declare a Client-side Listener in a ZUL Page =

Revision as of 10:38, 26 August 2010


Client-side Event Listening

Overview

ZK allows applications to handle events at both server and client side. Handling events at the server side, as described in the previous sections, are more common, since the listeners can access the backend services directly. However, handling event at the client side improves the responsiveness. For example, it is better to be done with a client-side listener if you want to open the drop-down list when a comobox gains the focus.

The rule of thumb is to use server-side listeners first since it is easier, and then improve the responsiveness of the critical part, if any, with the client-side listener.

Declare a Client-side Listener in a ZUL Page

Register a Client-side Listener in Client-Side JavaScript

Version History

Version Date Content
     



Last Update : 2010/08/26

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