Welcome Guest Search | Active Topics | Sign In | Register

How to set a timeout when use function loadURLAndWait Options
Seby
Posted: Friday, September 26, 2014 2:35:07 PM
Rank: Newbie
Groups: Member

Joined: 9/26/2014
Posts: 4
I use want to use loadurlandwait, but if the connection is broken, stay too much to execute

How can set a timeout (ex 60 sec ) to wait to execute this function.
OR
there is a event that can i check what is the status of execution?
eo_support
Posted: Friday, September 26, 2014 2:51:43 PM
Rank: Administration
Groups: Administration

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

You would use LoadUrl(url).WaitOne(time_out_in_ms). LoadUrl returns a NavigationTask object that exposes a number of wait methods (through its base class WaitableTask):

http://www.essentialobjects.com/doc/6/eo.webbrowser.navigationtask.aspx

LoadUrlAndWait is the same as LoadUrl(url).WaitOne(), which wait for an infinite time out.

Thanks!
Seby
Posted: Friday, September 26, 2014 3:10:05 PM
Rank: Newbie
Groups: Member

Joined: 9/26/2014
Posts: 4
I understand that.

I try to load innertext page into variable
i have this code:


Dim wb As New EO.WebBrowser.WebView
wb.LoadUrl(<urlpage>).WaitOne(3000)
myIP = wb.GetText

What is the best way.
eo_support
Posted: Friday, September 26, 2014 4:24:43 PM
Rank: Administration
Groups: Administration

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

Please see here for more details:

http://www.essentialobjects.com/doc/6/start/webview_no_ui.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.