Making an AJAX request every few seconds

I’m working on a project and I need to change a group of images every
5-10 seconds. It could be easily done with Flash, but I want to try and
find a way to do it using Javascript and AJAX.

Is there a way to call an RJS script every x seconds?

Thanks,

Andrew

Andrew wrote:

I’m working on a project and I need to change a group of images every
5-10 seconds. It could be easily done with Flash, but I want to try and
find a way to do it using Javascript and AJAX.

Is there a way to call an RJS script every x seconds?

Thanks,

Andrew

Nevermind this. I found periodically_call_remote right after I
submitted this question.