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 6062615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:04:20+00:00 2026-05-23T09:04:20+00:00

I run Ruby threads that use PhantomJS, a command-line headless Webkit engine, to turn

  • 0

I run Ruby threads that use PhantomJS, a command-line headless Webkit engine, to turn a number of urls into images. As of now, the page loads only once all of the images have been generated. Instead, I want to load the page and have a loading animation while the images are generated and show them as they are generated without the user having to reload the page. How would I do this? (I assume AJAX is needed.)

  • 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-05-23T09:04:21+00:00Added an answer on May 23, 2026 at 9:04 am

    You need to process them in a separate process. Once your request is finished, you lose a reference to the Threads that you started, so you can’t just contact them again to ask for a progress report. I guess you could have the Threads write the result to the database once done, but there are better alternatives.

    Resque-status is a gem that extends Resque by allowing you to track the status of individual jobs. You queue the jobs and take their job IDs, then you can use AJAX to call back to the application and query the progress of those jobs.

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

Sidebar

Related Questions

I am trying to use Rawr to turn a simple 3-file Ruby project into
I've run into a strange problem with Ruby that I can't explain. I have
I want to run my ruby script x times a day (the number might
I want to run javascript/Python/Ruby inside my application. I have an application that creates
I'm writing a ruby program that will be using threads to do some work.
is it true that it is better to run multiple instances of ruby scripts
When I run the KRL command line tool from the KRL gem on Windows
I'm trying to run a Ruby application that requires Sinatra within Ubuntu 10.10. I'm
I want to run a thread-safe piece of script in Ruby that calls an
I'm following this tutorial (seems good) for Rails. After I run ruby script/generate scaffold

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.