Page 1 of 1

Fire function at intervals?

Posted: Mon May 16, 2011 9:59 pm
by sleepydad
I have written a function that I would like to fire off every three minutes. Is there a way to do this without using a javascript page refresh? I'll have some videos and interactive content on the site that I'm afraid a page refresh would interfere with.

Thanks in advance -
sleepydad

Re: Fire function at intervals?

Posted: Tue May 17, 2011 1:55 am
by Kastor
on server side use cron (unix/linux)
on client site use js (timeout_id = window.setTimeout(func|code, delay))