I am making a script that sends newsletters out. The process for sending mail is that the users clicks "send" and this dispatches an AJAX Request to sendMail.php. SendMail.php simply takes the message and sends it to all the users in a database.
When the user clicks send a dialog also pops up, and what I want to achieve is the server sends back its current progress to the client in real time, so that I can update a progress bar and tell the client exactly when all the mail has been sent.
Im not exactly sure what I should be looking for or how to go about doing this. I am using jQuery if this is any help
Apologies for any vagueness, this is new to me so I am not sure what sort of stuff you need to know, just ask if you need me to elaborate :)
Cheers :)
EDIT: There appears to be some confusion, I am not looking to make a simple AJAX request, I can do this fine. What I am struggling with is sending data back to the client incrementally from the server.