|
Rank: Newbie Groups: Member
Joined: 5/11/2017 Posts: 2
|
How do I expose a .net class to Jscript? I see that you provide way to expose a function but I don't see anything class. Do you have similar function as CefSharp ChromiumWebBrowser.RegisterJsObject
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, There is no direct equivalent of RegisterJSObject in EO.WebBrowser. You can only register JS function, not object. See here for more details: https://www.essentialobjects.com/doc/webbrowser/advanced/jsext.aspxThanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 5/15/2017 Posts: 48
|
We are migrating from CefSharp to EO.WebBrowser. Our code currently use ChromiumWebBrowser.RegisterJsObject to bind .net objects. Do you have code sample on how to do similar in EO?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
You will need to rewrite that part of code to dispatch your calls through JSExtInvoke event as mentioned in link provided in our previous reply.
Thanks
|
|