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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:07:22+00:00 2026-05-26T18:07:22+00:00

I got this image to tell people that some action is loading: http://problemio.com/img/ajax-loader.gif Then

  • 0

I got this image to tell people that some action is loading: http://problemio.com/img/ajax-loader.gif

Then I put this div on my page to show it:

<div id="loading">
  <p><img src="/img/ajax-loader.gif" /> Please Wait</p>
</div>

Then I put this css for it:

#loading 
{ 
    display:none; 
}

Then in my jQuery I do this:

$("#loading").show();

But it just does not render. Any idea what I am doing wrong and why it does not show up?

Here is a page example where this is supposed to happen: http://www.problemio.com/problems/problem.php?problem_id=216

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-26T18:07:23+00:00Added an answer on May 26, 2026 at 6:07 pm

    Testing on Google hrome (by running $(“#loading”).show(); on developer console) seems to work fine.

    Could it be that the element is placed on the bottom of the page and you just don’t see it appear ?

    If that’s the issue try to apply the following styles on your css

    #loading {
      position: fixed;
      left: 50%;
      top: 50%;
      background-color: #fff;
      border: 1px solid #aaa;
      padding:0 20px;
    }
    

    Also you should probably change the logic of the appearance of the block to the following

    • Show the loader immediately when the user clicks a link that triggers an ajax call
    • Do the ajax call
    • Ajax call gets completed (error or success)
    • Hide the loading div
    • Continue with the error/success handler

      $('#add_attempted_solution').bind('submit',function() {
      
      // pre ajax call code
      
      $("#loading").show();
      $.ajax({
          type: "POST",
          url: "/auth/check_login.php",
          dataType: "json",
          success: function(data) {
              $("#loading").hide();
      
              // success handling
              ......
              ....
          },
          ...
          error: function() {
              $("#loading").hide();
      
              // error handling
              ....
              ...
          }
          ...
      })
      

      }

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

Sidebar

Related Questions

I´ve got a star image as <img> . This image has a javascript function,
I've got this image: I want to code this image (just the bar, not
I got this SVG image from Wikipedia and embedded it into a website using
I got this Base64 gif image: R0lGODlhDAAMALMBAP8AAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAACH5BAUKAAEALAAAAAAMAAwAQAQZMMhJK7iY4p3nlZ8XgmNlnibXdVqolmhcRQA7 Now I want to display this
I've got this code: $filePath = '/blah/image.jpg'; $data_array = array( file_data=>@.$filePath, ); the $data_array
I can't figure this one out. I've got an iPhone-only app with an image
Alright.. I'm struggling with this one.. I've got an image with a transparent hole
I got image which is partialy overlapped by DIV, this particular image got its
I want the border will show an image so for that I used this
I've got some problems while trying to change the size of an image when

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.