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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:38:51+00:00 2026-06-05T10:38:51+00:00

I am attempting to display a dialog to user while performing an AJAX call

  • 0

I am attempting to display a dialog to user while performing an AJAX call using JQuery. I NEED the call to be “async: false” because other parts of the page are dependant on the data and I cannot include all of the code needed in the “success” field.

Using Firefox and Opera, the dialog box displays properly, however in IE and Chrome it waits until the page is completely rendered and does not display the dialog box at all. Here is a sample this is pretty close to the actual implementation, this is a much larger project I have tried to strip it down to the minimums involved.

http://jsfiddle.net/mcraig_brs/eNMna/

I would like to find a way to display the dialog BEFORE starting the ajax call and close the dialog when it is complete. The AJAX call MUST remain “async: false”. Is this possible and How can I do this?

Any help would be appreciated. The final answer needs to work in IE8/9, Firefox, and Chrome. Opera and Safari would be bonus 🙂

In response to one of the responses, I have modified the fiddle to show what I mean:

http://jsfiddle.net/mcraig_brs/BBhdS/

  • 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-05T10:38:53+00:00Added an answer on June 5, 2026 at 10:38 am

    Try running all your code after the document is ready:

    $(function(){
      var page = new pageManager();
      page.LoadData();
    });
    

    If the code is executed before the document is completely ready, some of jQuery’s selectors (for example, $("#dialog")) may have no effect because the elements are not ready yet. It depends on how the browser constructs the page vs. how the elements are ordered, etc.

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

Sidebar

Related Questions

I'm attempting to display a modal dialog as a test run before I try
I am attempting to display a .tif in Java using a minimal number of
I have an ASP.NET website which uses the jQuery dialog to present the user
I'm attempting to display some text in my program using (say) Windows GDI and
I'm attempting to display some text in my program using (say) Windows GDI and
I'm trying to create a dialog window using the following CSS: #blackOverlay { display:
I have a Google Chrome extension that opens a Twitter Bootstrap dialog (using JQuery
I am attempting to display a list of items (the style and controltemplate for
I'm attempting to display a listview that includes an image previously downloaded from the
I am currently attempting to implement a custom gridview interface to display data from

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.