Running a server action without user input every "x" seconds


I'm developing a web application, and i'm having an issue.

I need a "Web Screen" to "Run a Server Action" every, let's say, 3 seconds without needing any user input (like clicking a button).

How can i accomplish that?

Thanks :)


You're going to need some javascript.

See this Fiddle to have an idea:

Basically it clicks a button (that can be hidden) every 3 seconds, with the javascript setInterval() method.


Well... I kinda saw the hidden button bodge coming. The platform should provide a clean way to do what i want.

Anyway, thank you very much João for fiddle. I hope you have a nice weekend.