Welcome Guest Search | Active Topics | Sign In | Register

window.onbeforeunload Options
Apex Networks Ltd.
Posted: Sunday, December 10, 2017 1:05:25 PM

Rank: Advanced Member
Groups: Member

Joined: 5/8/2015
Posts: 46
Hi,

We have an issue which we hope you can help us with. Our web client has a main form with a webview which opens sub forms each containint their own webview. We have recently added a new way of removing locks on records by implementing the following js in the popup windows:

window.onbeforeunload=function() {unlockJob();};

This works fine when browsing our site using a browser (Edge, Chrome etc.) , however in the client when the popup form is closed this is never called. I've tried setting the unload delay but it doesn't make any difference?

We are using version 17.2.14.0

Regards,
Andy.
Apex Networks Ltd.
Posted: Monday, December 11, 2017 11:06:12 AM

Rank: Advanced Member
Groups: Member

Joined: 5/8/2015
Posts: 46
Ok I think I've solved it myself. I guess because the form was closing the webview didn't exist anymore and couldn't close properly.
Handling the form closing event and calling close(false) on the webview now makes this work as expected.

Andy.
eo_support
Posted: Monday, December 11, 2017 11:16:43 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Great. Thank you very much for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.