I'm looking at the following site: www.example.com
I'm navigating to the site with a GeckoWebBrowser object and taking a snapshot of the HTML of the object every second. Then I navigate the DOM to get the table I want (div = 'tableContainer'), get the InnerHTML of this element, and parse the table to a C#.Net Dataset. I can then create 'Price' objects and carry on processing the updates.
I would like to do this asynchronously: without the need to check the HTML of the element in a loop. If there's no update, I don't want to do anything. If there is an update, I want to collect the HTML (preferably just for a row/column/cell that has updated!!). How can I do either of the folllowin
this.geckoWebBrowser1.Window.Scripter.AddEventListener("updateItem_inJavaScriptCode", new EventHandler<DOMJSONStringEventArgs>(OnMyExtensionEvent));
or
Skybound.Gecko.GeckoElement tableContainer = gwb.Document.GetElementById("tableContainer");
tableContainer+= new GeckoDOMElementHTMLCHANGEDUPDATE(methodToCallWithDOMUpdate);`
I'd appreciate any suggestions for this in Java or C#.Net or any pointers at all.
Thanks.