Welcome Guest Search | Active Topics | Sign In | Register

Work with popups in EO Options
Akansha
Posted: Monday, April 6, 2020 2:11:49 PM
Rank: Newbie
Groups: Member

Joined: 3/21/2020
Posts: 9
Hi Team,

I am loading a web view that has a link to a website that when loaded gives a popup of Allow or Block.
I was getting an error that "The current page tries to open a new window. Please handle the NewWindow event."
So I handled the NewWindow event.
But then also I am not able to get any popup.
Kindly let me know how can I see any such popup in EO browser.

Also, when I am trying to open a video through flashplayer.
I have copied the "manifest.json" and "pepflashplayer64_32_0_0_344.dll" in a folder and have used below command

EO.WebEngine.Engine.Default.Options.AdditionalPluginsDirs = new string[] { "C:\\Path\\Flash" };

But it is still opening the link to download Flash Player.
Kindly let us know how can we use the plugin without installing on system.

Thanks
eo_support
Posted: Tuesday, April 7, 2020 9:35:30 AM
Rank: Administration
Groups: Administration

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

As for popup, you are responsible for providing placing the new WebView. The WebView is always a child window, it can not live without a hosting window. When the JavaScript code tries to open a popup, the browser engine would create a new WebView and call NewWindow event. Inside that event you must then put that newly created WebView somewhere. You can create a new Window (or a Form if you use Windows.Forms) and put it in that Window, or you can put it somewhere inside your current Window. Wherever you put it is up to you. But if you don't put it somewhere, it is "discarded" and nothing will show.

For FlashPlayer, you need to download the 32 bit, not the 64 bit version.

Both topics are explained in details here:

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

https://www.essentialobjects.com/doc/webbrowser/advanced/plugin.aspx

Thanks
Akansha
Posted: Wednesday, April 8, 2020 6:18:18 AM
Rank: Newbie
Groups: Member

Joined: 3/21/2020
Posts: 9
Thanks for your reply.

It worked with 32 bit version.

Though it is working with -
EO.WebEngine.Engine.Default.Options.AdditionalPluginsDirs = new string[] { flashPluginFolder };

But, my requirement is to copy these 2 files (json and dll) in main directory, so I need to add plugin for only these 2 files.
Is there any property using which we do not need to give full directory name of Flash plugins. And we can give name of only 2 files that are required.

Thanks!
eo_support
Posted: Wednesday, April 8, 2020 7:26:18 AM
Rank: Administration
Groups: Administration

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

It should work without setting AdditionalPluginsDir if you place those two files in the same directory as EO.WebEngine.dll. Have you tried that?

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.