i want to send request every 5 minutes using javascript

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
lokesh_kumar_s
Forum Commoner
Posts: 48
Joined: Mon Apr 13, 2009 5:39 am
Contact:

i want to send request every 5 minutes using javascript

Post 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.
User avatar
arjan.top
Forum Contributor
Posts: 305
Joined: Sun Oct 14, 2007 4:36 am
Location: Hoče, Slovenia

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

Post by arjan.top »

setInterval
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

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

Post 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
lokesh_kumar_s
Forum Commoner
Posts: 48
Joined: Mon Apr 13, 2009 5:39 am
Contact:

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

Post by lokesh_kumar_s »

thanks :)
Post Reply