Welcome Guest Search | Active Topics | Sign In | Register

LoadCompleted event problem Options
piess105
Posted: Monday, May 4, 2015 2:23:24 PM
Rank: Newbie
Groups: Member

Joined: 4/27/2015
Posts: 6
Hi,

I have a problem with this event, it runs only once when I navigate a website from:

Code: C#
webView1.Url = "www.google.com";


I would like it to pops up each time when a website is refreshed(but only once when whole document is completed, not like IsLoadingChanged event). Do you know the simplest way how to do it ?

Thx
eo_support
Posted: Tuesday, May 5, 2015 9:28:13 AM
Rank: Administration
Groups: Administration

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

Currently LoadCompleted event is only fired for requests that are explicitly loaded from your code (by setting Url property, or by calling one of the LoadXXX function such as LoadUrl). It does not fire for user initiated navigation. We are working on this and our next version will fire LoadCompleted event for all requests. In the mean time, if you can let us what you need LoadCompleted event for, then we will see if it is possible to achieve that another way.

Thanks!
piess105
Posted: Tuesday, May 5, 2015 1:20:51 PM
Rank: Newbie
Groups: Member

Joined: 4/27/2015
Posts: 6
Hi,

its fine I have already found another way. I am calling the method using Time something like that:

Code: C#
void IsLoadingChanged(arg1,arg2)
{
if(timer.enabled == false)
timer.start();
}

void LoadingCompleted(arg1,arg2)
{
//...some update()
}

void tick()
{
  if(webView.isLoading == false)
  {
  LoadingCompleted(null,null);
  timer.stop();
  }
}



I asked the question because I thought there is a method which maybe I missed.
eo_support
Posted: Tuesday, May 5, 2015 3:33:26 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
Great. Glad to hear that you have found a working solution!


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.