Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Just a thought: With all the web-'dynam-ism' nowadays, a page is never really in a 'completely-loaded' state. After DocumentComplete, the OnLoad event of the page is fired, then any scripts placed in such an event are fired, and then javascript timers may be used to initiate download/upload of some resource, or a change in page using AJAX, etc.</p> <p>I believe AJAX calls could cause all kinds of unseen problems with your <code>WebBrowser</code> control; because AJAX can cause multiple <code>Navigating()</code> events to fire during the loading of a page. And for that reason your app would experience multiple <code>DocumentCompleted</code> event fire on that page.</p> <p>A possible solution could be to monitor the page changes and attempt to find out what possibly got changed. And to do this you may need to look into <a href="http://msdn.microsoft.com/en-us/library/aa704258%28VS.85%29.aspx" rel="nofollow noreferrer">Notify</a> method. </p> <blockquote> <p>Called by MSHTML when a change occurs in the contents of the markup container with which it is associated.</p> </blockquote> <p><a href="http://social.msdn.microsoft.com/forums/en-US/ieextensiondevelopment/thread/5fe3e7a1-b3c7-4083-9a00-7a72bf833a9c/" rel="nofollow noreferrer">This</a> and <a href="http://social.msdn.microsoft.com/forums/en-US/clr/thread/d91f3553-0981-4587-a800-83ac6fd4ed8a#" rel="nofollow noreferrer">this</a> discussion may help you coming up with something like following:</p> <pre><code>HtmlElement target = _webBrowser.Document.GetElementById("somedivthatwillbepopulatedbytheajaxrequest"); if (target != null) { target.AttachEventHandler("onpropertychange", new EventHandler(handler)); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload