Page 1 of 1

i want to send request every 5 minutes using javascript

Posted: Fri Jul 17, 2009 4:34 am
by lokesh_kumar_s
hi i want to send GET request after every 5 minutes.does it supports timers or is it having any sleep kind of functions please help. please specify if it is having any timers kind or sleep kind of functionality.

Re: i want to send request every 5 minutes using javascript

Posted: Fri Jul 17, 2009 4:40 am
by arjan.top
setInterval

Re: i want to send request every 5 minutes using javascript

Posted: Fri Jul 17, 2009 5:16 am
by onion2k
setInterval is one way. setTimeout is another. If you're using jQuery I can highly recommend the timers plugin; http://plugins.jquery.com/project/timers

Re: i want to send request every 5 minutes using javascript

Posted: Fri Jul 17, 2009 7:13 am
by lokesh_kumar_s
thanks :)