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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:42:59+00:00 2026-06-04T07:42:59+00:00

$("#multiselect").hide(); $("#multiselect_container").append(‘<img id="loader" src="/loader.gif" />’); Above 2 functions inside the $("#list").click() block are being

  • 0
$("#multiselect").hide();
$("#multiselect_container").append('<img id="loader" src="/loader.gif" />');

Above 2 functions inside the $("#list").click() block are being skipped for some reason in IE, not FF, Chrome

$("#list").click(function() 
{           
    var selection = $(this).val();
    
    $("#multiselect").hide();
    $("#multiselect_container").append('<img id="loader" src="/loader.gif" />');

    $.ajax(
    {
        url: 'include/ajax.php?id='+selection,
        async: false,
        dataType: 'json',
        success: function (json) 
        {       
            $("#loader").remove();
            $("#multiselect").show();
                    
            //parse json
        } 
    });//json
});

What’s going on:

There is a button #list and a container #multiselect_container which holds #multiselect which is a select box of it’s container’s size.

When #list is clicked, the select box is hidden and the container beneath it is shown, with a loading bar.

When the ajax call is finished the loading bar is removed and the select box is shown again.

In Firefox this works perfectly fine. In IE it does not.

Things that I have tried:

  • $('#list').ajaxComplete(function() {}); in the success section

  • Sleeping the php file for 3 seconds. Same results, except with a delay.

  • Removing the ajax block, those 2 calls are made properly.

  • caching is not the issue, ajax calls are being made

  • 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-04T07:43:01+00:00Added an answer on June 4, 2026 at 7:43 am

    You should change async: false to async: true. With async: false it would be normal behaviour for the display to not be updated until after the ajax call has completed. So that change might be enough to fix it. Otherwise read on…

    I’ve had a similar problem with IE before, where it just didn’t want to update the display to show a “loading” type message while doing Ajax – even though the Ajax is asynchronous. It’s not that the functions themselves are skipped, just that the display doesn’t get updated until after the Ajax complete callback had executed too – and since the complete processing removes the “loading” message it’s as if it never existed from the user’s point of view. As with your code, my project worked fine in Firefox. It was a while ago, but if I remember rightly I got it to work in IE by introducing a short timeout on the Ajax call, something like this:

    $("#list").click(function() 
    {           
        var selection = $(this).val();
    
        $("#multiselect").hide();
        $("#multiselect_container").append('<img id="loader" src="/loader.gif" />');
    
        setTimeout(function() {
           $.ajax(
           {
               url: 'include/ajax.php?id='+selection,
               async: true,  // changed from false
               dataType: 'json',
               success: function (json) 
               {       
                   $("#loader").remove();
                   $("#multiselect").show();
    
                   //parse json
               } 
           });//json
        }, 5);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background Python has "textwrap" and "dedent" functions. They do pretty much what you expect
$("#input").keyup(function(){ console.log($(this).val()); }) When one is typing slowly "a" & "b" the above code
My jQuery: $("ul.dropdown ul").slideDown("slow"); $("ul.dropdown ul ul").children().hide(); That causes the ones that match the
t=[] t.append(("a",1)) t.append(("b",2)) t.append(("c",3)) return render_to_response(t.html, context_instance=RequestContext(request, {'t':t})) How can I access a value
How can I register for multiselect "item selected" and "control collapse" events (when the
In "using namespace" statement inside an anonymous namespace it was asked whether the following
I use "source" inside a bash script, as follows: #!/bin/bash source someneatscriptthatendsprematurely.sh I would
Regular expression to match ">", "<", "&" chars that appear inside XML nodes I
The "joke" question Joel asked during podcast #58 made me all nostalgic for Logo,
Are "Visual Studio Setup" projects suitable for complex setups in different versions? The application

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.