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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:31:02+00:00 2026-06-10T18:31:02+00:00

Actually i have trying to put an ajax loader in my application. I tried

  • 0

Actually i have trying to put an ajax loader in my application. I tried this

$(document).ajaxStart(function(){ 
  $('#ajaxBusy').show(); 
  }).ajaxStop(function(){ 
  $('#ajaxBusy').hide();
});

This is working fine. But the problem is whenever i click an element which starts an ajax request, the ajax loader(gif image) is displayed in a single place. But i dont want that i want the loader should be displayed respectively near each element which is clicked only near that element.

so i tried this,

$('.follow_count').live('click', function(){
  $(document).ajaxStart(function(){ 
   $('#ajaxBusy').show(); 
   }).ajaxStop(function(){ 
   $('#ajaxBusy').hide();
  });
});

where .follow_count (this is one of the ajaxelement) is a div element. Here i want when the .follow_count element is clicked the ajax loader should be displayed near that element.

Could any one help me out of this..

  • 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-10T18:31:04+00:00Added an answer on June 10, 2026 at 6:31 pm

    Maybe if you change from id to class it will work:

    $('.follow_count').live('click', function(){
      $(this).ajaxStart(function(){ 
       $(this).find('.ajaxbusy').show(); 
       }).ajaxStop(function(){ 
       $(this).find('.ajaxbusy').show(); 
      });
    });
    

    ajaxBusy must be a class not an id if you will repeat it!

    Here is a small example.

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

Sidebar

Related Questions

This is a minimal test case of some code that I actually have. It
I'm trying to create a simple AJAX uploader (as i know you can't actually
I am trying to understand the Python ctypes module. I have put together a
I am actually trying to put a line break in a string in an
I am trying to put a link in a <th> element and have the
still trying to get my DataGrid go faster, I have a question about this:
In the following jsfiddle I have put some html and some css. I'm trying
I'm trying to plot the phase of an FFT using MATLAB. I have this
I actually have right now two questions: 1) What font faces are preferred for
I actually have two questions regarding exception/error handling in the iPhone app that I

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.