Welcome Guest Search | Active Topics | Sign In | Register

EO WebBrowser ExtInvoke Options
mkayas
Posted: Tuesday, June 14, 2016 4:35:00 AM
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.

eo_support
Posted: Tuesday, June 14, 2016 9:32:01 AM
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!
mkayas
Posted: Wednesday, June 15, 2016 3:09:44 AM
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 ?
eo_support
Posted: Wednesday, June 15, 2016 9:36:00 AM
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!


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.