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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:45:04+00:00 2026-05-31T20:45:04+00:00

I am having hard time finding a way to display a loading image in

  • 0

I am having hard time finding a way to display a loading image in a Div right next to a control they have clicked while waiting for a request.I am using a UpdateProgress Bar but it is supposed to be placed at a certain place on the page.I want to display it next to any control they select.Just like how it is on Facebook.

  • 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-31T20:45:06+00:00Added an answer on May 31, 2026 at 8:45 pm

    Closest thing I can think of is a absolute positioned div which is placed next to each element. However it doesn’t seem too valid since if the loading thingie is to the right of every progress link, it might overlap etc.

    I’m quite sure that Facebook made all these progress bars prepositioned and hidden, and not just one div for all of them.

    I guess you could try something like:

    <div id="progress_bar"></div>
    <style type="text/css">
        div#progress_bar {
            background: url('the_url_for_your_gif.gif') no-repeat center;
            display: none;
            height: 20px; /* Adjust yourself */
            position: absolute;
            width: 30px; /* Adjust yourself */
        }
    </style>
    <script type="text/javascript">
        var extra = 10; /* 10px extra for space */
        var prog_top = 0;
        var prog_left = 0;
        $(function() {
            $('a').live('click', function() {
                var h = $(this).offset();
                prog_top = h.top;
                prog_left = (h.left + $(this).width() + extra);
            });
        });
    
        function progress_thingie(loading) {
            if (loading)
                $('div#progress_bar').css({
                    'top' : prog_top,
                    'left' : prog_left
                });
            $('div#progress_bar').showToggle(loading);
        }
    </script>
    

    Basicly this would save positions on every <a> you press and use those positions for the progress div.

    Simply call the javascript function progress_thingie() and send a TRUE or FALSE to it, depending on if it’s loading or done.

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

Sidebar

Related Questions

I am having a real hard time finding a way to start, stop, and
I'm having a hard time finding this out from the documentation. I have some
I'm having a hard time finding the documentation for creating a unique dependency in
I'm having a hard time finding a good resource that explains how to use
I'm having a hard time finding the resources to solve my particular dilemma. I'd
I'm having a hard time finding a combination of sharepoint and vs releases that
I am working through the AHK docs but am having a hard time finding
I am having a very hard time finding a standard pattern / best practice
I'm having an impossibly hard time finding out to get the actual DOMElement from
I've been having a very hard time finding good examples of UIScrollView. Even Apple's

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.