ajax: don't wait for response, but check for it periodically

Posted by dnagirl on Stack Overflow See other posts from Stack Overflow or by dnagirl
Published on 2010-03-22T14:51:37Z Indexed on 2010/03/22 15:01 UTC
Read the original article Hit count: 532

Filed under:
|
|

I have a PHP process that takes a long time to run. I don't want the AJAX process that calls it to wait for it to finish. When the PHP process finishes it will set a field in a database. There should be some kind of AJAX polling call to check on the database field periodically and set a message.

How do I set up a jQuery AJAX call to poll rather than wait? Does the PHP script have to do anything special?

© Stack Overflow or respective owner

Related posts about jquery-ajax

Related posts about ajax-polling