-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I would like to be able to programmatically control when a user closes a browser window in order to be able to unlock records. Do you know any way to carry it out?
There is a known issue: ZK-4204 future chrome feature currently preventing "rmDesktop" (causing non cleaned up desktops)
If you use Chrome >= 73, ZK (<=8.6.1) can't remove Desktop as expected, so does DesktopCleanup
listener can't work correctly.
It's fixed in 8.6.2, please upgrade ZK.
Hi
you can do this
component.getDesktop().addListener(new DesktopCleanup() {
@Override
public void cleanup(Desktop desktop) throws Exception {
}
});
where component
is your Component, for example, it can be a Window.
Reference: https://www.zkoss.org/wiki/ZKDeveloper%27sReference/Customization/InitandCleanup
hawk ( 2020-05-15 11:40:53 +0800 )edithi you have to do this:
window.addEventListener("onClose", new EventListener<event>() { public void onEvent(Event event){
});
Asked: 2020-05-14 14:53:35 +0800
Seen: 32 times
Last updated: Jul 22 '20