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…')
 
m (remove empty version history (via JWB))
 
(24 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{ZKComponentReferencePageHeader}}
+
{{ZKDevelopersReferencePageHeader}}
 
= Overview =
 
= Overview =
  
= Declare a Client-side Listener in a ZUL Page =
+
ZK allows applications to handle events at both the server and client side. Handling events at the server side, as described in the previous sections, is more common, since the listeners can access the backend services directly. However, handling events 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 combobox gains focus.
  
= Register a Client-side Listener in Client-Side JavaScript =
+
A good 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.
  
=Version History=
+
For more information about handling events at the client, please refer to [[ZK Client-side Reference/General Control/Event Listening|ZK Client-side Reference: Event Listening]].
  
{| border='1px' | width="100%"
 
! Version !! Date !! Content
 
|-
 
|  
 
|  
 
|  
 
|}
 
  
{{ZKComponentReferencePageFooter}}
+
 
 +
{{ZKDevelopersReferencePageFooter}}

Latest revision as of 04:33, 5 February 2024


Client-side Event Listening


Overview

ZK allows applications to handle events at both the server and client side. Handling events at the server side, as described in the previous sections, is more common, since the listeners can access the backend services directly. However, handling events 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 combobox gains focus.

A good 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.

For more information about handling events at the client, please refer to ZK Client-side Reference: Event Listening.




Last Update : 2024/02/05

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