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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:29:43+00:00 2026-06-09T05:29:43+00:00

Maybe I should have asked this way earlier… I have a DIV that loads

  • 0

Maybe I should have asked this way earlier…

I have a DIV that loads all items from a sql table. Then I have some checkboxes that will be used to filter by color, so if a user picks BLUE the DIV will be reloaded passing BLUE as the color and showing only BLUE items.

Once the user clicks, I would like to show a “loading” .gif during the time elapsed while loading the BLUE items. Maybe it’s super short or maybe it takes 3 seconds or so…

My options are:

  • Having another DIV inside my main DIV that contains the .gif and is CSS non displayed. Then with a JQUERY I would have to display it and then hide it… If this option is good, what kind of JQUERY could i use?

  • Using a JQUERY to .load the Loading DIV before I load the results after filtering

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-06-09T05:29:45+00:00Added an answer on June 9, 2026 at 5:29 am

    The easiest approach is to have the div in the page, usually near the bottom of the page, hidden with css:

    <div id="loading">
        <img src="img/loading.gif" alt="Loading." />
    </div>
    

    css:

    #loading {
        display:none;
        /* some more code to position the div where you want */
    }
    

    js:

    $("#loading").toggle(); // or .show() / .hide()
    

    See fiddle: http://jsfiddle.net/Gwmah/

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

Sidebar

Related Questions

When I asked this previously I should have mentioned that it's particularly a light-weight
Sorry if this question has all ready been asked, maybe someone can point me
Over a year ago someone asked this question: Execute .sql files that are used
I'm reposting this question from an earlier post because when I originally asked it,
Is there any way to move an object forward in Three.js? Maybe I should
i dont know if i should be asking this here (im now thinking maybe
I have asked the same in a previous topic but someone said that I
I have learned that browsers can only load a few files from the same
I have this problem: I need to validate that files have not been uploaded
I have asked this question in Radiant CMS google group, but no one answered

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.