# Progress bar ideas (not file upload)

**URL:** <https://www.ruby-forum.com/t/progress-bar-ideas-not-file-upload/93229>\
**Category:** Rails\
**Created:** [April 29, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/progress-bar-ideas-not-file-upload/93229 "2007-04-29T18:06:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kturner](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c2a13f/32.png) [@kturner](https://www.ruby-forum.com/u/kturner)\
**Post date:** [April 29, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/progress-bar-ideas-not-file-upload/93229/1 "2007-04-29T18:06:25Z")

</div>

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
