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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:33:29+00:00 2026-05-26T11:33:29+00:00

I am not sure if this is an error or the way it should

  • 0

I am not sure if this is an error or the way it should be…

I am using a AJAX Loader at the top of my page because the page has several large files and I want the user to know when the page finishes loading. I have tested this in the major browsers and only opera shows the loader at all. The rest it never shows yet I can tell the content is not finished loading. Why does this loader not show?

Code:

HTML (This is at the first item in the page)

<div id="loading">
    <h2 class="textcenter"><span style="font-family:'Comic Sans MS', cursive;">LOADING</span><img class="center" style="width:128px" src="/messages4u/2011/images/preloader.gif" width="128" height="128" alt="Pre-Loader Animation" /></h2>
  </div>

JS (This is the last element on the page)

<script type="text/javascript">
document.getElementById("loading").style.display = "none";
</script>
  • 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-26T11:33:29+00:00Added an answer on May 26, 2026 at 11:33 am

    Use the onload-event of the window(fires when all ressources have finished loading), otherwise the loader will be hidden as soon as the script is parsed.

    <script type="text/javascript">
    window.onload=function()
    {
    document.getElementById("loading").style.display = "none";
    }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey, not 100% sure what this error means. % for f in * ;
I'm not sure why I'm getting this error, but shouldn't this code compile, since
I am not sure what the problem is but I keep receiving this error
I got this error message and I'm not quite sure whats wrong: Exception in
I'm still not sure this is the correct way to go about this, maybe
I'm not sure this question has the best of titles but I'm not sure
Not sure if this should go on this forum or on IIS forum... I
I'm not sure why this isn't working. I don't have any errors, but what
Not sure this is a programming question, but we use LaTeX for all our
Not sure this is possible, but looking to write a script that would return

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.