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

  • Home
  • SEARCH
  • 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 6921925
In Process

The Archive Base Latest Questions

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

The jQuery.active variable is set when an ajax call is in process (see jQuery.active

  • 0

The jQuery.active variable is set when an ajax call is in process (see jQuery.active function ). I’d like to know if its reset before or after the success (or error) call back functions are done executing. I need to know when the ajax call and all/any callbacks are done, not just when a response came back. Thanks.

  • 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-27T10:20:23+00:00Added an answer on May 27, 2026 at 10:20 am

    Why don’t you simply check the value in the ajax callback… then you’ll see for yourself if it’s changed before or after the callback is finished. I highly doubt it’s decremented after the callback, since it’s for requests in progress.

    If you need to know when the callbacks are done your callbacks and ajax queries will need to modify some state on the page. ie.

    1. ajax request increments variable ajax_processing_in_progress
    2. ajax callbacks decrement variable ajax_processing_in_progress

    Edit:

    Just realized since JavaScript is “single-threaded” (Is JavaScript guaranteed to be single-threaded?), implementing your own ajax_processing_in_progress that only gets decremented after the callback is finished (ie. at the end of the function block), may be equivalent to decrementing it anywhere in that block for all intents and purposes.

    I also recall utilizing jQuery.active variable to in a selenium script so I could wait until the AJAX calls were finished before doing my next user action. In my experience this worked.

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

Sidebar

Related Questions

While writing an add to favorites-function using AJAX and certain other jQuery functions like
I have the following jQuery function: $(function(){ if ($(.menu li).hasClass(active)) { $(.active).css(margin-top, 6px); }
Jquery has a great language construct that looks like this: $(document).ready(function() { $(a).click(function() {
Hey guys I have an ajax jquery function that receives data from a php
JQUERY: $(li h2).click(function() { $(this).toggleClass(active).siblings().removeClass(active); $(this).next(div).slideToggle(fast).siblings(div).slideUp(fast); }); HTML: <ul> <li> <h2>headingA</h2> <div>contentA</div> <h2>headingB</h2> <div>contentB</div>
I'm looking for something similar to this: Active navigation with jQuery - can't apply
jQuery's getScript function doesn't seem to support an error callback function. I can't use
I am using jQuery and trying to load a variable in place of a
I have a method in codeigniter that looks like this, public function category() {
Hey, I'm desperate right here. jQuery: $(.rotateme li a).click(function(){ var curid = $(this).attr('id'); $('#box'+curid).fadeIn('slow');

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.