Click here to Skip to main content
15,887,449 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
How to load the the updated HTML content to do some processing using webbrowser control.I am using a webbrowser control in my app to load a page that update its contents dynamically via ajax.I need to access the dynamic content to do some processing,but since the calls are made with ajax the page does not get refreshed and thus the documentcomplete event doesnot fire.Is there a way to get a notified when a call is using the xmlhttprequest object?some event fires may be?Any help will be greatly appreciated.. 


What I have tried:

var div = webBrowser1.Document as mshtml.HTMLDocument;
IHTMLElement target = div.getElementById("tabcontent");
if (target != null)
{
target.AttachEventHandler("onpropertychange", handler);
}//I am getting error in AttachEventHandler
It shows mshtml.ihtmlelement does not contain a definition for AttachEventHandler.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900