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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:12:45+00:00 2026-05-27T06:12:45+00:00

I got a dialog which showing a table, and when i click on a

  • 0

I got a dialog which showing a table, and when i click on a “Delete” button, I will pop up another dialog to ask for confirmation. Currently this works fine at the first time, but if I click the “Delete” button for the second time, the delete dialog is shown behind the first table dialog, so it is actually invisible to the user.

I tried to set the z-index for both dialog, but I don’t know why it is only working at the first time

Following is the sample of my script:

   // The 1st dialog
   var $detaildialog = $('#tableplaceholder').dialog({
        autoOpen: false,
        modal: true,
        width: '800',
        height: 'auto'

    });
   // Some steps to set the url.. then open the dialog
   $detaildialog.load(url, function () {

            $('#loading').hide();
            $detaildialog.dialog('open');
        });

   // Then, when delete action is called, open the second dialog
   fnOnDeleting: function (tr, id, fnDeleteRow) {
            var $dialog = $('#checkdeletedialog').dialog({
                autoOpen: false,
                modal: true,
                title: 'Delete Confirmation',
                zIndex: 90000
            });
            $dialog.dialog('open');
        }

Anything I am doing wrong here?

Appreciate any help.. thanks 🙂

  • 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-27T06:12:46+00:00Added an answer on May 27, 2026 at 6:12 am

    Set the “stack” property of the second dialog to true.

    function (tr, id, fnDeleteRow) {
            var $dialog = $('#checkdeletedialog').dialog({
                autoOpen: false,
                modal: true,
                stack: true,
                title: 'Delete Confirmation'
            });
            $dialog.dialog('open');
        }
    

    More information here.

    EDIT: We’ve also had issues with modal dialogs behaving oddly after opening once. We found that ‘destroying’ the dialog when it closes fixes the issue, e.g.

    var $dialog = $('#checkdeletedialog').dialog({
            autoOpen: false,
            modal: true,
            stack: true,
            title: 'Delete Confirmation',
            close: function() {
                $(this).dialog('destroy');
            }
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a save dialog box which pops up when i press a button.
Basically, I've got a table displays a few rows with a delete button next
I have an AlertDialog in and it's got a button, which, if selected, will
I've got a jQuery dialog and an asp.net button (Delete). When the delete button
I've got a simple WPF dialog with these two controls: <TextBox Text={Binding MyText}/> <Button
I have this huge VB project which i just got from some one. i
I've got a Window which opens a borderless Dialog where you select some options.
I got a div tag which initially is set to have display:none and will
I've got this php page where I do a search which returns data from
I'm showing a modal dialog via window.showModalDialog(... which happens in a vbscript function (the

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.