Welcome Guest Search | Active Topics | Sign In | Register

WebView.JSExtInvoke - It is not safe to run JavaScript code at this moment. This can occur if you are inside event handlers of c Options
JK
Posted: Tuesday, January 19, 2016 8:04:10 AM
Rank: Advanced Member
Groups: Member

Joined: 7/20/2015
Posts: 52
Using EO 15.3.31.0, seeing this exception message in our application log sometimes and the application can crash or become unresponsive. The condition that seems to cause it is that one of the services we call via $.ajax from our page is unable to authenticate, and the prompt for username and password comes up but the user doesn't acknowledge the prompt because the application is hidden.

Any suggestions on how to prevent the error?

Is it possible to suppress the authentication prompt?
eo_support
Posted: Tuesday, January 19, 2016 2:00:36 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

You can handle this event to suppress the dialog:

http://www.essentialobjects.com/doc/eo.webbrowser.webview.needcredentials.aspx

If you know the user name/password (or you can display your own dialog to ask for user for it), you can call e.Continue with the user name/password in your event handler. If you do nothing in your handler, then it will be the same as user cancel the dialog. This would effectively suppress the 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.