RJustman wrote:Hello.
I have this fragment of JavaScript that contains my test, and I want to know if eValid can execute it.
This is an issue i'm having and I can't seem to overcome this ... please help.
Thanks
Running a JavaScript fragment is easy RJustman.
First, you have to make sure your JavaScript is "known" to the browser; you can do this in a variety of ways, but basically you have to declare the passage to your browser in some page.
Next, you need to know the name of the JavaScript method you want to run.
Then, you have this command in your eValid script:
CallJavaScript wid "function([argument [, argument]])" "frame_path"
where all of these parameters have their usual eValid meaning.
To remind you: "wid" is the window id,and that is "0" if you are in the topmost window (the parent window).
If you don't have frames to worry about you can leave that argument off; it will be assumed "" (empty).
Note that you can also pass argument values explicitly to the browser.
Final note: JavaScript is single threaded and if your JavaScript passage has an infinite loop you may get some strange outcomes.
-- eValid Support