-
FEATURED COMPONENTS
First time here? Check out the FAQ!
please how i can make ZK Client Engine fire an event when the client close the browser it is so necessary for me.
Hi,
The client:
function yourFunction(zkWindow) { comm.sendUser(zkWindow, "onBeforeBrowserClose", param1, param2, paramn); }
window.addEventListener("onUser", new EventListener() { public void onEvent(Event e) { Object[] data = (Object[])e.getData(); if(data[0].equals("onBeforeBrowserClose")) { //..do something } throw new IllegalArgumentException(data[0]); } });
Regards,
edgar
how do I set the client function?
I'm using Java not scripting, I'll check how this is translated to java code
hi naarani please did you find how you use this in java i need it thanks
Please how i can call the function " youFunction"?? please help
Please what is the variable "comm" in the function "yourFuntion"
please the function "yourFuntion" i did not know where i put it, and param1 is not know for my javascript function
Hi,
>>please how i can make ZK Client Engine fire an event when the client close the browser it is so necessary for me.
Did you have a js function to do that?
In this function you can call the comm.sendUser function. The param1 is an example to show you how send additional parameters to the zk listener (the Object[] data variable in the listener example), is not required if you don't have to send anything.
Asked: 2009-04-24 15:28:58 +0800
Seen: 332 times
Last updated: Apr 30 '09