[Solved]Detect that page loaded correctly

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

[Solved]Detect that page loaded correctly

Postby Tisu » Thu May 18, 2017 6:33 am

Hi,
how can I detect that page loaded correctly ? I mean without any errors e.g. no internet connection.
I'm using WPF C# version.
Last edited by Tisu on Thu May 18, 2017 9:19 am, edited 1 time in total.
Tisu
Newbie
 
Posts: 2
Joined: Thu May 18, 2017 6:23 am

Re: Detect that page loaded correctly

Postby digory » Thu May 18, 2017 7:31 am

Implement CefLoadHandler and listen to OnLoadError and OnLoadingStateChange. If OnLoadingStateChange is called with isLoading set to false and OnLoadError has not been called since the last reload, the page has successfully loaded.
digory
Expert
 
Posts: 118
Joined: Wed Oct 26, 2016 3:13 am

Re: [Solved]Detect that page loaded correctly

Postby Tisu » Thu May 18, 2017 9:19 am

Thanks, this solved my problem :).
Tisu
Newbie
 
Posts: 2
Joined: Thu May 18, 2017 6:23 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 36 guests