Welcome Guest Search | Active Topics | Sign In | Register

"Confirm Navigation" - Popup does not open Options
Riephi
Posted: Tuesday, March 8, 2016 6:00:38 AM
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
eo_support
Posted: Tuesday, March 8, 2016 8:19:03 AM
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.aspx

Thanks!
sundar
Posted: Tuesday, July 6, 2021 10:57:51 AM
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;
};
eo_support
Posted: Tuesday, July 6, 2021 11:06:01 AM
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!


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.