Im not really sure what to search for on this subject.
I have a Pylons back end which loops over a list of email addresses in a database and then displays them on a web page. What I would like to do is have a loading section (as there are some other processes which take quite a while) to show which email address is currently being proccessed.
i.e
"currently processing: example@internet.com"
"currently processing: example2@internet.com"
Im open to using any technology available, although I suspect AJAX would be the answer. Im just a bit stumped for what to do, as if I return something to the front end web page, the process will end! There must be some sort of parallel processing, but I dont know how to go about it. So how can I show which email address is being processed on screen?
Python
emails = [a,b,c]
for x in emails:
return x
Javascript
function displayProcess(email){
$('#emailDisplay').val(email)
};