DocumentComplete and reload
-
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
-
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
-
I found an article covering this problem: http://www.codeproject.com/internet/detecting_the_ie_refresh.asp[^]
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 ||
-
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 ||
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