Welcome Guest Search | Active Topics | Sign In | Register

DomContentLoaded event Options
Christoph Herold
Posted: Monday, March 7, 2016 3:58:01 AM
Rank: Newbie
Groups: Member

Joined: 3/7/2016
Posts: 8
Hi everyone!

I was wondering, if there is a simple way to get the DomContentLoaded DOM event in the .NET code? So far, I have only been able to find the Loaded event, which is something different.

Thanks for all pointers!

Best regards,
Christoph
eo_support
Posted: Monday, March 7, 2016 5:15:39 PM
Rank: Administration
Groups: Administration

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

You can set WebView.JSInitCode to some JavaScript that handles this event in JavaScript, then call back into .NET through JS extension interface:

http://www.essentialobjects.com/doc/webbrowser/advanced/jsext.aspx

Thanks!
Christoph Herold
Posted: Tuesday, March 8, 2016 4:11:00 AM
Rank: Newbie
Groups: Member

Joined: 3/7/2016
Posts: 8
Hi!

The JSInitCode property was the information I was missing. Now that I know how to execute javascript when a page loads, everything is working nicely. Thanks a lot for the info!

Best regards,
Christoph

eo_support
Posted: Tuesday, March 8, 2016 8:04:04 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Great! 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.