|
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
|
|
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.aspxhttps://www.essentialobjects.com/doc/webbrowser/advanced/plugin.aspxThanks
|
|
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!
|
|
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
|
|