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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:34:46+00:00 2026-06-13T04:34:46+00:00

I have tried this answer . This is my function, I call it when

  • 0

I have tried this answer.

This is my function, I call it when I click on the image.

function CheckOut(urlCheckoutNew,urlWebService) {
  var inputData = JSON.stringify(getQuotation(urlCheckoutNew));
  $('#imgloading').show();
  $.ajax({
    type: 'POST',
    url: urlWebService,
    contentType: 'application/json',
    processData: false,
    dataType: 'json',
    data: inputData,
    success: function (dataQuote) {
        //alert(1);
        $('#imgloading').hide();
    }
  });
}

This is my html :

<div id="imgloading" style="display:none;">
    <img src="/Content/Images/ImageModal/loading.gif" alt="Confirming"/>
</div>

The function is in state success the alert is working, but the image is not loading.
When the alert dialog is popup, I see the loading image is loading in the background. But when I commented the alert, the image didn’t show.

Could any one tell me how could I do this?

  • 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-13T04:34:47+00:00Added an answer on June 13, 2026 at 4:34 am

    The image is undoubtedly loading, it’s just hidden again so quickly that it never becomes fully visible.

    Test it like this:

    $.ajax({
        type: 'POST',
        url: urlWebService,
        contentType: 'application/json',
        processData: false,
        dataType: 'json',
        data: inputData,
        success: function (dataQuote) {
            $('#imgloading').fadeOut(2000);
        }
    });
    

    The result should be that your image appears and then fades out slowly. That’s likely not your intended behavior, but it’ll confirm that your image is indeed loading (since the alert() approach wasn’t convincing…).

    You might wish to show the image for a short period of time to give the user a sense of security that something is indeed happening. In that case, I would suggest delaying hiding the image somewhat. There are numerous ways to accomplish this, but I typically do the following:

    success: function (dataQuote) {
        var $image = $('#imgloading')
        $image.show(500, $image.fadeOut(2000));
    }
    

    Since the image is already shown, the show() is redundant and acts as a simple delay.

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

Sidebar

Related Questions

Ok, I have tried searching around for this answer, but with no luck. I
I have tried to search for an answer in google, and this site, but
In a Django template, I have a function function show_graph(i){ $(#+i+seegraph).click(function(){ $(#+i+graph).show(); var qaa
I want to call a function right after a scroll ends. I have tried
I have tried this: #define format(f, ...) \ int size = strlen(f) + (sizeof((int[]){__VA_ARGS__})/sizeof(int))
I have tried this to pass the information: Form1 frm1 = new Form1(); textBox1.Text
I have tried this but it does not work (even if I specify .wav
i have tried this: <?php $fileip = fopen(test.txt,r); ?> this should have opened the
i have tried this code to redirect a php page.but it s not working
I have tried this but it doesn't work: tell application Preview set myfile 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.