0

confirmClose

asked 2006-11-15 10:15:12 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4013308

By: nobody

Latest zk release included this functionality:

The confirmClose method of the org.zkoss.zk.ui.util.Clients class is added to prevent an user from closing the browser window, reloading and browsing to another URL.

I need help in using it. How can I catch this kind of user interactions from the code? (user closing, reloading, etc...)

Thankyou very much.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2006-11-16 02:09:49 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4014695

By: henrichen

It is some kind of "enable" "disable" method. Call confirmClose("some message") to enable it. Call confirmClose(null) to disable it.

/henri

link publish delete flag offensive edit

answered 2006-11-16 09:28:57 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4015011

By: manuel_moreno

Ok! I understand what you mean... I tried it and it works fine. Thankyou very much.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2006-11-15 10:15:12 +0800

Seen: 310 times

Last updated: Nov 16 '06

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More