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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:47:52+00:00 2026-06-05T23:47:52+00:00

I use modal dialogs. A modal dialog is build up with a mask div,

  • 0

I use modal dialogs. A modal dialog is build up with a mask div, and a container div. The container div contains an iFrame with the modal aspx page. When the modal dialog is initialized, the mask and container are added to the page body. When I close the modal dialog, the mask and container are removed from the body.

Everything works fine, and when I start debugging in Visual Studio, and open a new modal dialog, I see the new page in the debugger at ‘script documents – Windows Internet Explorer – somePage.aspx’

But when I close and remove the dialog, the page just stays ‘alive’ in the VS debugger, until I refresh the complete page.

Is this bad? Does the page ‘stay alive’ somewhere even tho its removed from the body? Or is it just a Visual Studio debugger UI thingy?

I found this question, about endlessly growing script block files. I think thats the same issue, but that question is not really answered there.

  • 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-05T23:47:53+00:00Added an answer on June 5, 2026 at 11:47 pm

    It is not enough to remove the container div that contains the iframe.

    I expected that this would be sufficient to remove and destroy the iframe:

    $(this.mask).remove();
    $(this.container).remove();
    

    The container contains one other div (the modal dialog title) and an iframe.
    That iframe is not removed by killing the container using the above code.
    It looks like its not just a Visual Studio debugger issue, because the memory of the iexplore.exe process in windows task manager is also going up, and up, and up, every time I close and open a new dialog.

    Solution:
    When I explicitly remove the iframe, then the page does disapear from the debugger!

    I can do that by saving the the iframe in a var on initializing the modal dialog, and then explicity remove the iframe when removing the modal dialog. This way:

    on create / initialize modal dialog:

    this.frame = this.container.childNodes[0].childNodes[1];
    

    and on close modal dialog:

    $(this.frame).remove();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to build a generic/re-usable modal dialog that I can use in
I have a page where I use jQuery UI. I also use modal dialogs,
I'm wanting to use the jquery dialog to open a modal dialog, and in
I want to use a autocomplete combobox http://jqueryui.com/demos/autocomplete/#combobox within a modal dialog. However whenever
I am trying to use a stage. Stage as Modal Dialog is not working
I am trying to use JQuery UI dialog (modal form) for the following scenario.
I'm trying to use the simple modal jquery library on a page and the
I've got a MDI-Application in which I'd like to use modal dialogs...yes, I know
I use jQuery modal dialogs (jQuery UI) for modal popups.It is working fine, until
i'm starting to use modal dialog; i create this code reading, and with 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.