ajax - How check WebBrowser completed fully? -


how check when webbrowser has completed? code doesn't work heavy ajax websites. fire before site has completed , return html code while javascript still running.

i need check when website completed. code tested http://www.html5test.com

procedure browser_documentcomplete(asender: tobject;   const pdisp: idispatch; var url: olevariant); var   curwebrowser: iwebbrowser;   topwebbrowser: iwebbrowser;   document: olevariant;   windowname: string; begin   curwebrowser := pdisp iwebbrowser;   topwebbrowser := (asender tembeddedwb).defaultinterface;   if (curwebrowser = topwebbrowser) , not browser.busy , (browser.readystate >= readystate_complete) begin     fdocumentloaded:=true;     end; end; 

a web page uses ajax loaded browser , executes javascript update / modify content.

the client not know when "fully completed" state has been reached. javascript methods might run after delay, or periodically.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -