Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. COM
  4. DocumentComplete and reload

DocumentComplete and reload

Scheduled Pinned Locked Moved COM
c++questiontestingbeta-testing
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    conman110
    wrote on last edited by
    #1

    Hello, I developed a simple browser helper object in VC++ as an ATL project which listens for the DocumentComplete event of the DWebBrowserEvents2 interface. When testing it I discovered that this event is not fired if the user presses the reload button. Why is that? And what is the proper event which is fired, when the document is loaded and is fired again, when the document is reloaded? Thanks for your attention. Constantin

    C 1 Reply Last reply
    0
    • C conman110

      Hello, I developed a simple browser helper object in VC++ as an ATL project which listens for the DocumentComplete event of the DWebBrowserEvents2 interface. When testing it I discovered that this event is not fired if the user presses the reload button. Why is that? And what is the proper event which is fired, when the document is loaded and is fired again, when the document is reloaded? Thanks for your attention. Constantin

      C Offline
      C Offline
      conman110
      wrote on last edited by
      #2

      I found an article covering this problem: http://www.codeproject.com/internet/detecting_the_ie_refresh.asp[^]

      S 1 Reply Last reply
      0
      • C conman110

        I found an article covering this problem: http://www.codeproject.com/internet/detecting_the_ie_refresh.asp[^]

        S Offline
        S Offline
        shivditya
        wrote on last edited by
        #3

        I found article is using CCmdTarget for finding sink. I am actually in similar problem,where I am trying to monitor IE with help of toolbar, so I am using pure atl,com and not mfc.So what is alternative way to monitor events.Or I have to in similar way. I have IWebBrowser2 object in my hand.

        || ART OF LIVING ||

        C 1 Reply Last reply
        0
        • S shivditya

          I found article is using CCmdTarget for finding sink. I am actually in similar problem,where I am trying to monitor IE with help of toolbar, so I am using pure atl,com and not mfc.So what is alternative way to monitor events.Or I have to in similar way. I have IWebBrowser2 object in my hand.

          || ART OF LIVING ||

          C Offline
          C Offline
          conman110
          wrote on last edited by
          #4

          I included the technique described in this article and found out that it works under most circumstances but not all: The event pair DownloadBegin/DownloadComplete which is used to detect the refresh of the page gets also trigged if the page uses a remote scripting technique. So we would get a false alarm each time the page appends a script node to the DOM. I played around with another Add-on (the Snap Shot Add-On from www.snap.com) and found out, that it somehow gets DocumentComplete to be triggered if the user presses the pages refresh button. But how do they do that? And is there maybe a reason that DocumentComplete isn't called when the page reloads? Best regards Constantin

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups