Welcome Guest Search | Active Topics | Sign In | Register

handle JS popup from website Options
Beau
Posted: Wednesday, March 9, 2016 2:33:11 PM
Rank: Newbie
Groups: Member

Joined: 3/9/2016
Posts: 3
We have a client that uses this browser component in their app, which uses our website to print packing slips.
I need to create these packing slips and be able to test them as if I were using their app.
I have created a basic simple forms app in VS2015 that uses the EO.WebControl and lets me hit the website easy enough.

However, I need to be able to allow a popup initiated from the website's JavaScript (not from my code inside the app) in order to actually see the format of what is printing.

I get the error: "The current page tries to open a new window. Please handle NewWindow Event"...
eo_support
Posted: Wednesday, March 9, 2016 2:55:16 PM
Rank: Administration
Groups: Administration

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

The message already told you exactly what you need to do. See here for more details:

http://www.essentialobjects.com/doc/webbrowser/advanced/new_window.aspx

You can also see the source code in the TabbedBrowser sample application to get an idea of how to handle this event. The key is this event passes you a WebView object and you must display that WebView to the user (in your case put it in a popup window).

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.