setInterval not defined in scoped app
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023 06:22 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023 06:31 AM - edited 03-09-2023 06:35 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023 06:31 AM
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**