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

The Archive Base Latest Questions

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

I was wondering if there was a quick and easy way to put a

  • 0

I was wondering if there was a quick and easy way to put a loading gif int a jquery $.Post function?
I am thinking I would most likely have to put it into the body of the function somehow. I want to kind of overlay the page in a kind of haze, with that spinny Loading gif, or maybe the horizontal barbershop bar thingy. I have the images in my mvc images folder already, Just need to figure out my options for implementing it.

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

    I assmume there is an event which occurs to start the ajax post off? In which case, you would need to display your loading image before calling the ajax. Then when the call returns, you would need to hide the loading image.

    For example:

    $("#button").click(function() {
        // show loading image
        $("#loadingImage").show();
    
        $.ajax({
            type: 'POST',
            url: url,
            data: data,
            success: function(data) {
                // Your logic here...
    
                // hide loading image
                $("#loadingImage").hide();
            }
        });
    });
    

    HTML

    <input type="button" id="button" value="Load data" />
    <img src="loading.gif" id="loadingImage" style="display: none;" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering if there is a quick and easy way to output ordinals given
I'm wondering if there is a quick and easy function to clean get variables
I was wondering if there was a quick way to get all of an
Quick question, I was wondering if there is a way to use Solr's API
I'm wondering if there is a helper (or a quick and dirty way) to
I'm wondering if there is a quick/clean way to get the symmetric difference between
I was wondering if there is a quick and effective way to remove all
I'm just wondering if there is a quick way to echo undefined variables without
I was wondering if there was a quick way to extract keys of associative
I have a quick JavaScript question. I was wondering if there's a way to

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.