Rank: Member Groups: Member
Joined: 9/29/2019 Posts: 14
|
Using the browser event OnLoadDone() { WebWin=EOWeb.GetDOMWindow(); WebDoc=WebWin.docouement; ParsePg(); }
void ParsePg() { ... EO.WebBrowser.DOM.Element e = WebDoc.getElementById("someID"); ... }
The above line crashes when F5 is pressed with error EO.WebBrowser.JSInvokeException: 'Invoking function 'getElementById' failed because object is invalid.'
How can prevent or what should be check when parsing the page?
|