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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:54:50+00:00 2026-05-11T08:54:50+00:00

I have a method in my controller that kicks of a job on the

  • 0

I have a method in my controller that kicks of a job on the server. I’ll use a Ajax call (jQuery) to start this via a link on the page. This can take a while and I need to show some status on the page. I don’t necessarily need ‘26% done …’ but more a status showing ‘working’ or ‘done’.

How do a get jQuery to continuously pull for the status of the job? Or should it be solved differently?

  • 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. 2026-05-11T08:54:50+00:00Added an answer on May 11, 2026 at 8:54 am

    You will need some sort of state to hold the status of the task which both the task and Javascript can Access. For example Server Cache. Say you use a key of TaskComplete.

    Kick off your task with javascript through AJAX

    While Your Task Is Running

    Task updates Server Cache Item

    End While

    Parallel

    Use Javascript to poll the cache for a value

    Kick off your task with javascript through AJAX

    While Ajax Response Not Task Complete

    wait 2 seconds

    Call a javascript function through ajax again to read the value of the Server Cache Item

    Execute relevant task based on its value

    An Article you may find useful is here:

    http://msdn.microsoft.com/en-us/magazine/cc163393.aspx

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

Sidebar

Related Questions

I have a controller method that is a little something like this: def suggestions
I have an update method in my users controller that I call from a
I have a method in a controller that looks like this: [HttpPost] public void
I have a controller method that looks like this: [AcceptGet] public ActionResult Index(SecurityMatrixIndexViewModel model)
I have a method in controller that receives a parameter like this: def example
I have a method inside my controller that I need execute inside delayed job
I have a controller method that returns a jSON object and in one calling
i have a quetion about MVC routing. I have a controller method that is
In Ruby on Rails, I have an update method in a controller, that is
I have an annotated controller with a method that expects a model and a

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.