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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:20:27+00:00 2026-05-24T07:20:27+00:00

I have a web application where on the click of a button a bunch

  • 0

I have a web application where on the click of a button a bunch of work gets done on the server. This work is initiated by an ajax call and preceeding that call I display a jquery ui dialog that contains an animated gif to let the user know stuff is happening. Once the work is complete the ajax call returns and the dialog is closed. The problem I am having is that in IE 7/8 the dialog never opens. If I remove the code that closes the dialog from the callback then the dialog is displayed after the call completes which is not so helpful.

Here is the definition of my dialog:

$("#dgImporting").dialog({
    autoOpen: false,
    width: 250,
    height: 125,
    modal: true,
    resizable: false,
    position: 'center',
    closeOnEscape: false,
    open: function (event, ui) { $(".ui-dialog-titlebar-close").hide(); }
});

And here is the method I am using to execute my ajax call:

function executeImport(importData) {
importData.carriers = JSON.stringify(selectedCarriers);
$("#dgImporting").dialog("open");
$.ajax({
    type: "POST",
    traditional: true,
    url: "import/execute",
    async: false,
    data: JSON.stringify(importData),
    dataType: "json",
    contentType: "application/json; charset=utf-8",
    success: function (data) {
        $("#dgImporting").dialog("close");
    }
});

The ajax call may take up to a minute to return but with this configuration I never see the dialog box. If I remove (“#dgImporting”).dialog(“close”); from the callback then I will see the dialog but not until after the ajax call completes, eventhough I call dialog(“open”) prior to making the ajax call.

In Firefox and Chrome this works as expected but I really need to make it work in IE. Any JavaScript gurus out there have any ideas what I can do?

  • 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-24T07:20:28+00:00Added an answer on May 24, 2026 at 7:20 am

    Looks like it might be the async: false setting. From the documentation:

    async Boolean

    Default: true

    By default, all requests are sent asynchronously (i.e. this is set to true by default). If you need synchronous requests, set this option to false. Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation. Note that synchronous requests may temporarily lock the browser, disabling any actions while the request is active.

    Try taking it out and testing again.

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

Sidebar

Related Questions

i have developed a web application asp.net C#. on a button click i am
in my web application I have a button when I click I want to
I have a web application. On my page ive got this: <div id=myDiv runat=server
Need to provide this facility on a button-click in my web application. Could be
I have a web application that does the following: You click a button to
I have web application Project having RPC call. one RPC async is working fine.
I have web application in that i am using tabbed interface control in this
I have a ASP.NET web application, when I click menu report, it will download
We have a web application that is based around a form that gets passed
I have code like this on some aspx page in my Web Application: <asp:Content

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.