F5 browser refresh to be trapped [message #1766795] |
Tue, 27 June 2017 11:13 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
Pressing F5 to refresh the browser in a RAP application causes the whole application to be restarted, losing all state date.
The exitConfirmation service is a useful feature to ask the user to confirm that they really want to navigate away from the application (also triggered on F5 refresh), but what would be useful is some mechanism that allows me to trap the F5 refresh within the application itself, and never trigger a browser refresh.
This way I would be able to process some application-specific refresh logic instead.
Is it possible to trap F5 in this way, on all browsers?
---
Just because you can doesn't mean you should
|
|
|
|
Re: F5 browser refresh to be trapped [message #1766811 is a reply to message #1766799] |
Tue, 27 June 2017 14:00 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
|
Thanks Ivan - good hint... CANCEL_KEYS in conjunction with ACTIVE_KEYS and a key listener does the job perfectly - I've tested in Chrome and IE and both work exactly how I need.
Cheers, John
---
Just because you can doesn't mean you should
|
|
|
Powered by
FUDForum. Page generated in 0.03841 seconds