Thank you for your answer! Is there a way to detect if there are unsaved changes in the page? Or do I have to implement it manually?
mpanagiotou ( 2022-07-20 16:30:11 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I am new to the ZK environment. In my application I have a .zul page with text inputs and drop-downs. Is there a way to warn the user before leaving the page that there are unsaved changes?
Thanks in advance!
You can call
Clients.confirmClose("any"); //with non-null string
To enable page leaving warning message. Then when you leave the current page (close, reload, visit a link), the browser will show its default warning dialog.
Thank you for your answer! Is there a way to detect if there are unsaved changes in the page? Or do I have to implement it manually?
mpanagiotou ( 2022-07-20 16:30:11 +0800 )editAsked: 2022-07-19 21:14:54 +0800
Seen: 6 times
Last updated: Jul 20 '22