Page 1 of 1

The Async File Progress Problem

Posted: Sat Jan 23, 2010 1:09 pm
by jack_indigo
I'm needing to scan in 10,000 text files into a database. There are some other procedures involved on the data before hitting the database, so it takes a little while. I'd like to provide a web page to do this and while it's running I'd like a progress bar to update in real time.

I tried doing this with jQuery and AJAX, but I can't get it to work reliably. It has to do with setTimeout() and setInterval() not working like I wanted and instead I only get either a response like once in the middle of the progress, or at the end when the progress is done. I can't seem to figure out how to make the code work.

Have you ever tried this? I'm stuck.