Click here to Skip to main content
15,880,392 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello coders :-)

I have a little problem, but I don't know how to fix...

I made a webbrowser by my own cause I want to check some stuff when page is loaded. I do that with the "document complete" event. But after page is loaded the ajax can renew data, this changes should be recognized. I don't know how to make an event to the "html div" with content is changed.

I tried a lot of code from google search but I didn't found the code witch works :-)

Please help me :-)
so long phil

ps: framework 4.5, webbrowser seams to be ie11 if it's necessary :-)

What I have tried:

HTMLDocument doc = (HTMLDocument)webBrowser1.Document.DomDocument;
IHTMLElement2 div_result = (IHTMLElement2)doc.getElementById("inhalt");
HTMLElementEvents2_Event events = (HTMLElementEvents2_Event)div_result;
events.ondatasetchanged += new HTMLElementEvents2_ondatasetchangedEventHandler(UpdatedHandler);
Posted
Updated 31-Jul-17 22:09pm

1 solution

You propably want to use the ajax complete hook-in
.ajaxComplete() | jQuery API Documentation[^][^]

an example with playarounds
Tryit Editor v3.5[^]
 
Share this answer
 

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