|
Rank: Advanced Member Groups: Member
Joined: 7/17/2015 Posts: 51
|
Dear Support-Team, we have the problem, that the "Confirm Navigation"-popup does not open in EO.Webbrowser. In our application we display a website, which reloads. The result is, that our application, which is showing this website, closes and the website opens in the webbrowser window - and not in our application again. We can not avoid this, because we are not getting this popup. It seems that EO.WebBrowser automatically confirms this navigation change. But we don't want this. In chrome we get this popup. So my question is: How can we enable/ allow this popup? Best regards
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, Can you isolate the problem into a small test project and then send the test project to us? Please see here for more information about how to send test project to us: http://www.essentialobjects.com/forum/test_project.aspxThanks!
|
|
Rank: Newbie Groups: Member
Joined: 3/27/2019 Posts: 2
|
Is this issue resolved in the latest version?
My web app has an event handler for beforeunload. On webview close, it invokes the event handler but it doesn't display the confirmation dialog.
Below the sample event handler for the event beforeunload.
private onBeforeUnloadHandler: (this: Window, ev: BeforeUnloadEvent) => any = event => { if (this.hasPendingChanges()) { // Ensures to show browser specific pop up on browser reload if there are unsaved changes event.preventDefault(); event.returnValue = ''; return false; } return true; };
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
Please check whether you handled WebView.JSDialog event. If you do not handle WebView.JSDialog event, then the default confirm dialog will be displayed. If you do handle this event, then you must display your own dialog when e.DialogType is JSDialogType.BeforeUnload. If you handle this event but do not display your own dialog when e.DialogType is JSDialogType.BeforeUnload, then you will not see the confirm dialog.
Thanks!
|
|