Need to execute an ajax call incrementally after fixed time periods in javascript?

Posted by Ali on Stack Overflow See other posts from Stack Overflow or by Ali
Published on 2010-03-30T12:14:05Z Indexed on 2010/03/30 12:23 UTC
Read the original article Hit count: 618

Filed under:
|
|

HI guys, I need to be able to make an ajax call to be made after every few minutes. Basically the ajax call would be to check on new emails in an inbox. If there are new emails it would download the emails to a database. I got all the server side code set up fine. I just need to know how do I set up on the front end the part where the ajax call is made after every few minutes plus it should be set up such that we don't end up with parallel ajax calls being made i.e if the ajax call hasn't returned a response it shouldn't start a new ajax request.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about AJAX