setInterval not defined in scoped app

Dotychczas
Mega Guru

Hello experts.

I'm trying to setInterval() in scoped app but I still get an error saying: 

Evaluator: com.glide.script.RhinoEcmaError: "setInterval" is not defined.

I tried to run same code in background script, also in global scope but with no luck. 

2 REPLIES 2

Allen Andreas
Administrator
Administrator

Hi,

I would recommend checking out setTimeout() instead: https://developer.mozilla.org/en-US/docs/Web/API/setTimeout 

And yes, this is a client side function to control the browser, it's not server side. If you're trying to run it server side, then it won't work.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hemant Goldar
Mega Sage
Mega Sage

Hi @Dotychczas,

 

I guess the setInterval() function is a Client-side function.

 

I hope this helps!

 

Regards,

Hemant 

**Please mark my answer correct or helpful based on the impact**