How get the load status some pages
Posted: Tue Jan 09, 2018 3:06 am
Hello, Salvador!
I need to get the status of the page to show / hide the load icon, but some sites (for example, instagram.com) always have value isLoading is True
I used this code. Instagram always returns isLoading is True.
Demo TabBrowser. Delphi XE7. Windows 10. Latest libraries.
I need to get the status of the page to show / hide the load icon, but some sites (for example, instagram.com) always have value isLoading is True
I used this code. Instagram always returns isLoading is True.
Demo TabBrowser. Delphi XE7. Windows 10. Latest libraries.
Code: Select all
procedure TMainForm.Chromium_LoadingStateChange(Sender: TObject;
const browser: ICefBrowser; isLoading, canGoBack, canGoForward: Boolean);
var
itemIndex: integer;
begin
if GetPageIndex(Sender, itemIndex) then
begin
ShowMessage(BoolToStr(isloading));
end;
end;