Welcome Guest Search | Active Topics | Sign In | Register

WebView Evalscript exception handling Options
Biz
Posted: Thursday, May 12, 2016 5:08:57 PM
Rank: Member
Groups: Member

Joined: 8/26/2014
Posts: 20
We are trying to use WebView through ThreadRunner (i.e. silent, non-UI browser interaction). When using EvalScript like this:


webView.EvalScript(script, true);


We are getting an exception "window" even though we have an exception handler in the function. This will not work when the program is running in unattended mode. What can be do to suppress the exception dialog box?
eo_support
Posted: Friday, May 13, 2016 9:51:17 AM
Rank: Administration
Groups: Administration

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

If your application is running in non-interactive mode (for example, from within a service), then you do not need to do anything special to suppress the dialog. The dialog will not be shown in non-interactive mode.

If your application is running in interactive mode, then you can handle this event to skip the dialog:

http://www.essentialobjects.com/doc/eo.base.runtime.exception.aspx

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.