Forum: Ruby on Rails progress bar ideas (not file upload)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Da734ede01dc6e5bace38f5fbc0fc4f6?d=identicon&s=25 Kevin Tambascio (ktambascio)
on 2007-04-29 18:06
I am working on an import operation that takes 30-60 seconds.  It
includes parsing XML, committing objects to database tables, etc.
There's a lot of data in each XML file, which accounts for the time.
I'd like to display a progress bar somehow, and be able to use some
mechanism to advance it as the import operations moves forward.  The
import code is in the controller.  I think I could add the progress bar
to the import form (use an ajax request to submit the form), but I'm not
sure how the controller could callback into the progress bar.

Any thoughts?
-Kevin
This topic is locked and can not be replied to.