Webbrowser Control for AJAX based sites

  • Thread starter nupur.agarwal29
  • Start date
N

nupur.agarwal29

Hi,

I am using System.Windows.Forms.Webbrowser control in my application.
For the Ajax based sites like live.com, the webbrowser control
processes and renders the javascript requests, even after the
DocumentComplete event is fired, because of which I get incorrect
scrollHeight and scrollWidth of the document.

Is there any way to tell if the webbrowser is still processing
XMLHttpRequests and javascript?

Thanks,
Nupur
 
N

Nicholas Paldino [.NET/C# MVP]

Nupur,

AFAIK, there isn't any way to hook into this. The DocumentComplete
event is strictly for the rendering of the page. Anything that the page
does to make calls (through the XMLHttpRequest, for example) occurs outside
of that.

Hope this helps.
 
N

nupur.agarwal29

Is there any way to hook to the requests made by page rendered in the
webbrowser control?
Or if we could get the instance of the script engine running for this
webbrowser control and find out if it has finished processing or
sending/receiving data?
Nupur,

AFAIK, there isn't any way to hook into this. The DocumentComplete
event is strictly for the rendering of the page. Anything that the page
does to make calls (through the XMLHttpRequest, for example) occurs outside
of that.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi,

I am using System.Windows.Forms.Webbrowser control in my application.
For the Ajax based sites like live.com, the webbrowser control
processes and renders the javascript requests, even after the
DocumentComplete event is fired, because of which I get incorrect
scrollHeight and scrollWidth of the document.

Is there any way to tell if the webbrowser is still processing
XMLHttpRequests and javascript?

Thanks,
Nupur
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top