Page 1 of 1

Inline JS function call issue

Posted: Fri Nov 11, 2016 10:25 pm
by bbanelli

Code: Select all

Procedure MyProcedure()
  Debug "Hello world"
EndProcedure

; Call in SpiderBasic
; MyProcedure()
; Call using Javascript
!f_myprocedure();

Code: Select all

Uncaught ReferenceError: f_myprocedure is not defined(…)
However, if you uncomment MyProcedure() it works (function is called both times).

Re: [SB 2.00 b6] Inline JS function call issue

Posted: Fri Nov 11, 2016 10:42 pm
by Peter

Re: Inline JS function call issue

Posted: Mon Nov 14, 2016 7:53 am
by bbanelli
Hi Peter, thanks for the heads up.

BTW, you proposed Declare as solution or that is a solution? Since I don't seem to be able to utilize it...

Re: Inline JS function call issue

Posted: Mon Nov 14, 2016 8:08 am
by Peter
Hello bbanelli,
bbanelli wrote:BTW, you proposed Declare as solution or that is a solution?
at the moment 'Declare' is a dummy-function in SpiderBasic, so i think, it's a good idea to declaring JS-Functions with it.

Greetings ... Peter