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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:46:20+00:00 2026-05-20T18:46:20+00:00

I have two ‘nested’ or ‘cascaded’ dialogs on my web page (one dialog opens

  • 0

I have two ‘nested’ or ‘cascaded’ dialogs on my web page (one dialog opens another dialog on top of it), and i’m encountering problems when trying to close the ‘topmost’ dialog.

Here is the scenario:

  1. Dialog 1 is opened
  2. Dialog 2 is opened from a button inside of Dialog 1
  3. Dialog 2 is closed on a button click with the following code:

    dialog2.hide();
    dialog2.destroyRecursive();

  4. Problems happen.

‘Problems’ are defined as the ‘modality’ (as in, a dialog is modal) is lost for dialog 2 (meaning you can now interact with dialog 1), AND is lost for dialog 1 (meaning you can interact with the page behind the dialog), but dialog 1 is still there.

Interestingly, this problem does not show itself when you use the X in the top-right corner to close the dialog. Is there a * better * way to close the dialog?

EDIT: I’m using dojo 1.5

  • 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-20T18:46:20+00:00Added an answer on May 20, 2026 at 6:46 pm

    I have nested dialogs working with no prob with 1.5.

    Try skipping the destroyRecursive() call or changing it to destroy() to see if there are any differences.

    Also, are you calling hide() inside your click handler? Try setting up a timer to call hide() after the handler returns. I remember that calling hide for a dialog inside a handler sometimes screw things up.

    By what you mean “losing modality”, what really happens is that the dialog underlay got hidden. The underlay is a DIV (ok, a div within a div) linked to the class dijit.DialogUnderlay and the div is usually shown upon dijig.Dialog.show and hidden when upon hide. The div covers the entire screen area, which is what provides the “modality”.

    You should also go into your favorite web developer tool (Firebug or WebKit/IE’s dev tools) to check on this underlay div. It should be at the very end of your body. See if it is hidden.

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

Sidebar

Related Questions

Have two issues one is showFromToolbar statement format warning issue and another is that
I have two loggers. One that appends to a file, and another that is
I have two identical tables and need to copy rows from table to another.
I have two classes, and want to include a static instance of one class
I have two threads, one needs to poll a bunch of separate static resources
I have two spreadsheets... when one gets modified in a certain way I want
I have two webapplication, one is a simple authenticationsite which can authenticate the logged
I have two tables inside a database. One stores unique userNames and a unique
I have two function, one function is a reload function that does a ajax
Have two events: $('body').mouseup(function(e){} and $('.toggle').click(function(e){} I only want one of these to trigger.

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.