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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:43:58+00:00 2026-05-24T13:43:58+00:00

I intend to have a busy waiting spinner as per shown in this post:

  • 0

I intend to have a busy waiting spinner as per shown in this post: How to show loading spinner in jQuery? – since it’s the cleanest and easiest to implement:

 $('#loadingDiv')
        .hide()  // hide it initially
        .ajaxStart(function() {
            $(this).show();
        })
        .ajaxStop(function() {
            $(this).hide();
        })
    ;

and couple it up with the animations from http://www.ajaxload.info/

I have multiple “views” in my page i.e., different parts of my page can be updated/modified with the corresponding ajax calls.

I’d like to “position” this #loadingDiv close to where the ‘action is’ so to speak. How should I go about doing it?

Few things that come to mind:

  1. Have multiple divs all over the place and have them hidden and show them per element as per the corresponding action – seems naive and wasteful
  2. Have an empty <span></span> to ‘hold’ the #loadingDiv – show it when something happens in that span. I don’t know how to do this though…
  3. Something else??

Basically how best to approach positional busy waiting/signalling rather than have a single global one? Or is the single-global option preferred i.e., To have a “fixed” div, hidden show up on the top/center of the page for every activity?

Just want to know which option most of you have used/preferred to tackle something like that and how do you suggest I go about it…

  • 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-24T13:43:59+00:00Added an answer on May 24, 2026 at 1:43 pm

    There are some things to consider:

    Can the user cause problems if he interacts with other parts of the page while the request is loading?

    In this case block the whole UI with a lightbox like transparent overlay.

    Are the actions tiny and small, irrelevant to the rest of the application?

    Use the local, positioned spinner. If it’s a button, change the button’s contents from eg. “Save row” to “Saving…” with a spinner.

    If the request is significant but you want to let the user to mess around, and the GUI is complex

    You can overlay only parts of the screen. http://sfiddle.net/Lv9y5/39/

    Local updates, the non blocking way

    Use jQuery.position to create a Spinner object from scratch. It should have a .show(node) and .hide() method, and maybe a .setMessage(txt);
    The DOM reference passed to the show method is the element the user clicked on. With the reference, you can use jQuery .position() to determine where to absolute position the loading div. The loading div should be placed after the BODY element.

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

Sidebar

Related Questions

I have a data that looks like this . And I intend to create
I have this GenericRepository class that I intend to use as a base-class for
I have this java swing application that I intend to sell over the internet.
I intend to have many python with django applications on my server, is it
Newbie question... The objective: I intend to have an HTML text input field as
I have a string array in C# and I intend to copy it in
I have some settings in my app.config which I intend to be 'global' -
I have an array of structs and I intend to pass each element of
I have declared a DataTemplate in Window.Resources; I don't intend to use it inside
I have an image stack of 500 images (jpeg) of 640x480. I intend to

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.