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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:02:23+00:00 2026-05-30T03:02:23+00:00

I am working with JQuery dialog which is opened before an ajax call and

  • 0

I am working with JQuery dialog which is opened before an ajax call and on returning from the ajax call the dialog(‘close’) is executed. below statement opens up the busy dialog box as a banner (with no ok or cancel option):

$('.updateActionsTasks').live('click', function ()
{$('#modalBusy').html('<span>Busy...Please Wait.</span>').dialog({ dialogClass: 'no-close', resizable: false, width: 100, height: 100, modal: true, title: 'Busy' });  
More code goes here ...
//Ajax function call goes here

However, the close method work correctly only once. Upon executing the click again, the dialog opens up but never gets closed. The line with tag ‘COMM’ executes but does not close the dialog from second time execution on wards.

function ActionWorklistItem(serviceUrl, worklistActionItems, actionName, ActiveTab) {
$.ajax({
    type: "GET",
    url: serviceUrl,
    dataType: ($.browser.msie) ? "text" : "xml",
    success: function (data) {
        var xml;
        if (typeof data == "string") {
            xml = new ActiveXObject("Microsoft.XMLDOM");
            xml.async = false;
            xml.loadXML(data);
        } else {
            xml = data;
        }
        var xmlText = $(xml).text();
        xmlObj = $.parseXML(xmlText);
        if ($(xmlObj).find('IsSuccess').text() == 'true') {
            $('#modalBusy').dialog('close'); //COMM: This always executes
            __doPostBack($('.upWorklistCtrlID').val(), ActiveTab);
        } else {
            $('#modalBusy').dialog('close');
            //Create error msg dialog           }
    },
    error: function (xhr, ajaxOptions, thrownError) {
        $('#modalBusy').dialog('close');
        //Create error msg dialog
    }
});
  • 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-30T03:02:27+00:00Added an answer on May 30, 2026 at 3:02 am

    Following line seems to have done the trick.

    $('#modalBusy').dialog('destroy').remove();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been working on a simple JQuery dialog form that loads in via AJAX.
I have a jQuery UI Dialog working great on my ASP.NET page: jQuery(function() {
some how i manage to have jquery transfer effect working with jquery dialog but
I'm using the jquery ui dialog for a modal popup dialog. It's working great
I am working on jquery ui dialog box to display multiple images. Here is
I need to pop up a jquery dialog as confirmation before a submit happens.
I'm having a problem similar to jQuery $.ajax Not Working in IE8 but it
i'm trying to get slick upload working inside a jquery ui dialog. I've got
I am using the Jquery UI, I am using a modal dialog which is
From what I have played around with JQuery Dialog, I made an observation that

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.