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

The Archive Base Latest Questions

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

hello I’m pretty new at javascript and don’t know how to use it. I

  • 0

hello I’m pretty new at javascript and don’t know how to use it.

I want AJAX Loader to appear when a page loads and after loading is finished I want loader to dissapear. Can anyone post me a code for that?

  • 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-29T11:25:45+00:00Added an answer on May 29, 2026 at 11:25 am

    Generally this is done by showing/hiding a div or two over the top of your content. You can get a fancy loading gif from http://www.ajaxload.info/ to get you started. Then you’ll want to place a DIV on your page:

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

    You’ll want this hidden by default, so you’d need to add this CSS:

    #loading { display:none; }
    

    You’d also want to setup the display for this too:

    #loading { display:none; position:fixed; left:0; top:0; width:100%; height:100%;
           background-image:url("transparentbg.png"); }
    

    The file transparentbg.png would be a 25×25 black PNG set to about 80% opaque. Next you would need a way to show and hide this with jQuery:

    function showLoading() {
        $("#loading").show();
    }
    
    function hideLoading() {
        $("#loading").hide();
    }
    

    Now you can use this when you need to do something like querying an external page for data:

    showLoading();
    $.post("data.php", {var:"foo"}, function(results){
        $("content").append(results);
        hideLoading();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I need use Cyrillic chars inside of UrlRewriting.config Does any one know how
Hello there and Merry Christmas !!! I am new to WPF and I am
hello friends i am trying to get a list of user id and want
Hello ever one I want to ask a question about file opening.I want to
Hello StackOverflow, I'd like to know if there is way to trigger an event
hello im am getting JS error : Uncaught SyntaxError: Unexpected identifier here <script type=text/javascript>
Hello I want to convert a PDF file to text file. I am converting
Hello all in my iphone application after sending login xml request am getting following
hello i want to build silverlight application for wince6.0. im not getting whether we
Hello and thank you in advance. I know this is total noob question, and

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.