Welcome Guest Search | Active Topics | Sign In | Register

WebView.ObjectForScripting Options
Ezioi
Posted: Friday, February 18, 2022 7:32:05 AM
Rank: Newbie
Groups: Member

Joined: 2/18/2022
Posts: 8
Hello, I'm evalutating EO.WebBrowser.WebView from c#
If I write:
wBrowser = new EO.WebBrowser.WebView();
wBrowser.Create(this.Handle);
wBrowser.ObjectForScripting = this;

I receive this error:
there are multiple methods with name 'ValidateChildren' on objectforscripting

Could someone help me?
Thanks in advance
eo_support
Posted: Friday, February 18, 2022 10:31:52 AM
Rank: Administration
Groups: Administration

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

You can't have overloading functions (multiple functions with the same name but different argument list) on your ObjectForScripting object because JavaScript does not support function overloading. So in your case you should define a different class that only exposes methods you need from JavaScript on that object, you can then pass an instance of that object to ObjectForScripting.

Thanks!


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.