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
|
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!
|