|
Rank: Newbie Groups: Member
Joined: 6/14/2016 Posts: 6
|
I call the c# methods from javascript that assigned inside the JSExtInvoke eventhandler. I want to control from javascript side if I connected to windows app side eventhandler or not. Is there any eoWebBrowser.extInvoke property about it ?
I wanted to control like;
if(eowebbrowser.extInvoke == 'undefined') but it does not work.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
extInvoke always exits regardless whether you have an JSExtInvoke handler or not. So if you want your JavaScript side to be aware that you have an extInvoke handler or not, you must use some other mechanism. For example, when you add your JSExtInvoke handler, you can use EvalScript to call some JavaScript code to notify the JavaScript that now you have a handler.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 6/14/2016 Posts: 6
|
thanks for your answer. We also wonder if we can control the extInvoke methods are exist or not ?
I mean, do you have any existMethod that we will call from javascript side for c# methods ?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
No. Since a two way communication between the .NET side and the JavaScript side always exists, such function is not necessary.
Thanks!
|
|