Page 1 of 1

Can eValid trigger JavaScripts

PostPosted: Wed Jan 25, 2017 11:33 am
by LorenJ
Hey there.

Is there any way eValid can trigger (run) my OWN JavaScript program?

Give me provide some details on this...

Thanks

Re: Can eValid trigger JavaScripts

PostPosted: Thu Jan 26, 2017 11:14 am
by eValid
LorenJ wrote:Hey there.

Is there any way eValid can trigger (run) my OWN JavaScript program?

Give me provide some details on this...

Thanks


A great question LorenJ.

Thanks for asking.

Turns out there is a special command for this kind of capability.

The assumption is that the name of the JavaScript function is known and is verified to be present in the current page.

Then, you simply use the command:

CallJavaScript wid "function [, argument]" frame-path

Here the "function" is the name you have used for your own JavaScript.

Note that the command takes multiple (or no) arguments, depending on how you implemented your JavaScript passage.

There's no error checking, and if that function/method is not bound eValid's response is -- correctly enough for its purpose -- silence.

So, this is a "buyer beware" kind of capability.

On the other hand there are some neat things that can be done with this capability.

Have fun!

-- eValid Support