Welcome Guest Search | Active Topics | Sign In | Register

Hidden EO Browser Options
CSDev
Posted: Tuesday, August 18, 2015 5:24:25 AM
Rank: Member
Groups: Member

Joined: 2/10/2014
Posts: 17
Hello,

As mentioned earlier, we are moving from old to new version of EO Browser. For accelerating web page display within our application, we used to create three browser instances pointing to an URL and used to show them quickly on UI.

With the latest version, it looks like it is no longer supported. Can you please help us?
eo_support
Posted: Tuesday, August 18, 2015 6:09:50 PM
Rank: Administration
Groups: Administration

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

The "official" way to support hidden WebView is to use the ThreadRunner object:

http://www.essentialobjects.com/doc/webbrowser/start/webview_no_ui.aspx

Thanks!
CSDev
Posted: Wednesday, August 19, 2015 2:55:13 AM
Rank: Member
Groups: Member

Joined: 2/10/2014
Posts: 17
Hello,

Thanks for your swift reply.

We have already tried the sample you mentioned. How to use the webview which is created in a thread to the main thread and show the contents of the web page? A sample code would be highly appreciated.

Thanks,
eo_support
Posted: Wednesday, August 19, 2015 8:33:55 AM
Rank: Administration
Groups: Administration

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

Sorry I didn't understand your original question correctly. I thought you meant to create WebView in the worker thread. You should still be able to do what you were doing with the old version, even though it may no longer be necessary because the new version loads faster than the old version. We didn't remove any support on this in the new version though. Specifically which feature are you looking for and why do you think it was removed?

Thanks!
CSDev
Posted: Wednesday, August 19, 2015 8:55:52 AM
Rank: Member
Groups: Member

Joined: 2/10/2014
Posts: 17
Hi,

In our application, we are showing a Javascript based UI which takes around 6-7 seconds to load. We wanted to optimize this. So, on application launch, we were creating browser controls and accessing the required URL, keeping the browser control in hidden mode. When we have to show that, we will show already created browser control immediately. This is fairly quick, as all the javascript files are downloaded and are ready.

With the latest version, when we tried it, our application hangs at WebView.Create(handle). We are guessing that this is happening as the control is in hidden mode.

Basically, the WebView control is on a Form and we are hiding the Form. We are using WebView.loadURL.

Do you have any alternative options for this implementation?

Thanks.
eo_support
Posted: Wednesday, August 19, 2015 9:12:45 AM
Rank: Administration
Groups: Administration

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

This looks like a bug, we did not change anything regarding this intentionally. Can you send a small test project to us so that we can take a look? See here for instructions on how to send test project to us:

http://www.essentialobjects.com/forum/test_project.aspx

As mentioned earlier, the new version loads faster than the old version. So you may also want to try without such code and see if it is fast enough for you.

Thanks!
eo_support
Posted: Wednesday, August 19, 2015 10:14:53 PM
Rank: Administration
Groups: Administration

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

We have just posted a new build. Please test whether this build works for you. We did verify the new build with your test project here and it works fine here.

Thanks!
CSDev
Posted: Thursday, August 20, 2015 7:57:27 AM
Rank: Member
Groups: Member

Joined: 2/10/2014
Posts: 17
Thanks a lot for the fix. It is working fine now. We are now integrating it to our production code and will get back to you if we find any issues.

Wishes,
eo_support
Posted: Thursday, August 20, 2015 9:57:16 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Great. Thanks for confirming the fix!


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.