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.
|
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.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Great. Thank you very much for the update!
|