Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Detect when webbrowser document is fully loaded
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Detect when webbrowser document is fully loaded

 Post Reply Post Reply
Author
Message
DTeCH View Drop Down
Newbie
Newbie


Joined: 13 August 2009
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote DTeCH Quote  Post ReplyReply Direct Link To This Post Topic: Detect when webbrowser document is fully loaded
    Posted: 01 June 2010 at 5:30pm
Hi,

I'm trying to get the event of the webbrowser control that indicates it's fully loaded...

...after All iframes, & everything else in the browser document is done loading.

Each frame in a document triggers cjBrowser1_DocumentComplete when it's done loading, so

the following attempts to compare the frame that triggered DocumentComplete to the parent browser window.

If it matches, then it will set xWebB3Done to True.

I've tried :

(xWebB3Done is set to False before cjBrowser1 navigates)



Private Sub cjBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)

    If
(pDisp Is cjBrowser1.Object) Then
        xWebB3Done = True <================<< this is NEVER hit no matter what.
        ' Finished Loading
    Else
        ' Do nothing
    End If

End Sub



cjBrowser1_DocumentComplete is fired several times during a single page load.

pDisp say's it's "Microsoft Web Browser Control" at each, & every firing of a single page load.

What else can I do?

(VB6 on Vista)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.