I know how to call SpiderBasic functions from JavaScript (prefix: "f_"), but... how to call JS functions from SpiderBasic side?
I tied:
! myFunction()
but an error says: Uncaught ReferenceError: myFunction is not defined
How to call a JS function?
Re: How to call a JS function?
This (window.myFunction = myFunction) allows you to make a function globally accessible:
Call:
Code: Select all
! function myFunction() {
! alert("!");
! }
! window.myFunction = myFunction;
Code: Select all
! myFunction();
Re: How to call a JS function?
That's works!
Thanks (again) by your help
Thanks (again) by your help
