The Async File Progress Problem

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
jack_indigo
Forum Contributor
Posts: 186
Joined: Sun Jun 08, 2008 11:25 pm

The Async File Progress Problem

Post 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.
Post Reply