2009/3/17 Manoj Singh <manojsingh2...@gmail.com>:
> Hi Guys,
> I am creating a page which submits the form through Ajax request & the
> submitted page is sending the mails to n number of users. Now until the mail
> sends or the page process completed the end user has to wait.
> Is it possible that server sends the response to the client & then start
> processing so that the client doesn't have to wait for the server response.
> Please suggest.
> Regards,
> Manoj
Since you are using Ajax requests, which by their nature are
asynchronous , your user won't have to wait. You can write some JS
code to let him know that the request was sent, and just let the ajax
call run in the background. On the server side make sure to ignore
user abort, just in case the user navigates away.

Alpar Torok

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to