Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8884153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:59:44+00:00 2026-06-14T20:59:44+00:00

Have twitter bootstrap and using the progress bar. Want to animate the bar with

  • 0

Have twitter bootstrap and using the progress bar.

Want to animate the bar with javascript. Figured how to animate the bar based on time, now trying to figure how to animate based on progress.

The load screen comes when pulling elements out of a mongo api. How do I go about creating this animated progress bar that will move as i pull more elements?

def self.get_xxx_users(read_db)
db_users = read_db.collection("users");
db_users = db_users.find({"$and" => [:plan => { "$ne" =>"XXX"}, :'xxx.xxx_type' => {"$ne" => "XXX"}]},{}).to_a  
db_users
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:59:46+00:00Added an answer on June 14, 2026 at 8:59 pm

    Progess bars don’t progress magically as such you have to provide the hooks manually.

    A good but simple (and probably in need of optimisation) method of doing this is to count the number of records you wanna pick out:

    db_users_count = db_users.find({"$and" => [:plan => { "$ne" =>"XXX"}, :'xxx.xxx_type' => {"$ne" => "XXX"}]},{}).count();
    

    And then divide that up by a set area using limit() each time to complete a certain amount of batch processing you require.

    So as you add those, say, 100 per batch (this is what I magically decided was a good number per batch of processing) users to the main array (to_a) within your ruby app you ping a response back via AJAX or something to your app telling it to increment your progess bar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a modal created using Twitter Bootstrap. I want to open using javascript.
I am using twitter bootstrap and have a fixed nav bar. The navbar has
I have an app that is using twitter-bootstrap and I am trying to implement
I have a simple form with a legend using Twitter Bootstrap. I want to
I'm very new to javascript and have a question. I am using twitter bootstrap,
I am using twitter bootstrap but have a problem with the nav bar height
I want to make a budget template using Twitter Bootstrap. The output should have
I'm trying to create a topbar using twitter bootstrap, but the black bar won't
I have been using Twitter Bootstrap for some time. I heard a session that
Using twitter bootstrap (2), I have a simple page with a nav bar, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.