Hi all,
I have a problem.
I want to call some function after every 10 minutes. But I don't it.
Hi all,
I have a problem.
I want to call some function after every 10 minutes. But I don't it.
Vuong Hung wrote:
Hi all,
I have a problem.
I want to call some function after every 10 minutes. But I don't it.
JavaScript functions can be used for this effect in most instances. Though it depends on which function you want to execute, of course.
Vuong Hung wrote:
Hi all,
I have a problem.
I want to call some function after every 10 minutes. But I don't it.
Please provide more detail. Are you asking about server-side or client-side?
If you are asking about server-side there are options like delayed_job:
Or, in case the action to perform is very simple you can use use something like curl to send requests periodically to a url using cron:
$ crontab -e */10 * * * * curl http://example.com/action
If you're talking about client-side (JavaScript) then there are timing events that you can use for delayed or repeating events:
If you're using the Prototype JavaScript library it provides the Ajax.PeriodicalUpdater if you want to repeatedly send a request on an interval.