Welcome Guest Search | Active Topics | Sign In | Register

Updating a DOM element using EO.WebBrowser Options
PhilipT
Posted: Monday, June 2, 2014 8:20:06 AM
Rank: Advanced Member
Groups: Member

Joined: 2/15/2014
Posts: 52
Hi eo,

i am currently exploring if i can update a DOM element in an html document. So far, i managed to come up with this code
Window win = m_WebView.GetDOMWindow();
Document document = win.document;

if (document != null)
{
Element element = document.getElementById("sampleElement");
if (element != null)
element.innerHTML = "Updated";
}

When i debug, it seems to have hit a deadlock when updating the innerHTML property.

Any idea how to update a DOM element?

Regards
Philip
eo_support
Posted: Monday, June 2, 2014 12:32:37 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

Please go to Visual Studio's Tools -> Options -> Debugging -> General page, then uncheck "Enable property evaluation and other implicit function calls" and see if it resolves the issue for you.

Thanks!
PhilipT
Posted: Monday, June 2, 2014 12:42:10 PM
Rank: Advanced Member
Groups: Member

Joined: 2/15/2014
Posts: 52
It doesn't help. Whether i run the test windows app in debug mode or not, the application hangs.

eo_support
Posted: Tuesday, June 3, 2014 2:45:25 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

We have confirmed that this is a bug and posted a new build that should fix the problem. Please see your private message for the download location.

Thanks!
PhilipT
Posted: Tuesday, June 3, 2014 10:47:51 AM
Rank: Advanced Member
Groups: Member

Joined: 2/15/2014
Posts: 52
Hi eo

Tested the new build, works perfectly and no side-effects (so far :D ).

Thanks for the quick response.

Regards
Philip
eo_support
Posted: Tuesday, June 3, 2014 12:05:20 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Great! Thank you very much for confirming the fix. Please feel free to let us know if there is anything else.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.