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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:34:38+00:00 2026-05-26T02:34:38+00:00

I have 2 modal windows that are triggered from button clicks. They work fine

  • 0

I have 2 modal windows that are triggered from button clicks. They work fine in all browsers except IE7 (haven’t tested below this)

I was only able to demo the basic functionality in the demo but here goes. The first modal-dialog works fine, if you click on “loading data from server” it should close. The second modal does not work at all. On the demo it does nothing when you click “loading data from server”. (on my local copy when I click it removes the modal background div, wtf?)

The real curveball comes in when you open the second modal-dialog window first. Then both modals work fine. This is really getting to me (Damn you IE7)

I am using .live for the table row clicks within the Modal window. I need this to stay that way in order for the data to be sent to the form correctly.

The fiddle is here: http://jsfiddle.net/clintongreen/5DJxv/10/

  • 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-26T02:34:38+00:00Added an answer on May 26, 2026 at 2:34 am

    The following code was not working in IE7:

    $('#find_address_postal').click (function () {
    $('.modal_form_postal').dialog('open');
    $('table#table-data').attr( 'id', 'table-data_postal' );
    $('table#table-data_pobox').attr( 'id', 'table-data_postal' );
    $('td.address_street').removeClass("address_street").addClass("address_street_postal");
    $('td.address_suburb').removeClass("address_suburb").addClass("address_suburb_postal");
    $('td.address_city').removeClass("address_city").addClass("address_city_postal");
    $('td.address_code').removeClass("address_code").addClass("address_code_postal");
    $('td.address_street_pobox').removeClass("address_street_pobox").addClass("address_street_postal");
    $('td.address_suburb_pobox').removeClass("address_suburb_pobox").addClass("address_suburb_postal");
    $('td.address_city_pobox').removeClass("address_city_pobox").addClass("address_city_postal");
    $('td.address_code_pobox').removeClass("address_city_pobox").addClass("address_code_postal");
    $('label#suburb_search').css('display','none');
    $('label#street_search').css('display','inline');
    $('input#street_description').css('width','330px');
    }); //end click handler
    
    $('#find_address').click (function () {
    $('.modal_form').dialog('open');
    $('table#table-data_postal').attr( 'id', 'table-data' );
    $('table#table-data_pobox').attr( 'id', 'table-data' );
    $('td.address_street_postal').removeClass("address_street_postal").addClass("address_street");
    $('td.address_suburb_postal').removeClass("address_suburb_postal").addClass("address_suburb");
    $('td.address_city_postal').removeClass("address_city_postal").addClass("address_city");
    $('td.address_code_postal').removeClass("address_city_postal").addClass("address_code");
    $('td.address_street_pobox').removeClass("address_street_pobox").addClass("address_street");
    $('td.address_suburb_pobox').removeClass("address_suburb_pobox").addClass("address_suburb");
    $('td.address_city_pobox').removeClass("address_city_pobox").addClass("address_city");
    $('td.address_code_pobox').removeClass("address_city_pobox").addClass("address_code");
    $('label#suburb_search').css('display','none');
    $('label#street_search').css('display','inline');
    $('input#street_description').css('width','330px');
    }); //end click handler
    

    This was working previously in all browsers but when we implemented DataTables.js my code no longer worked using only 1 modal-dialog for both tables. So I created 2 modal-dialogs, once this was done the above code seemed to conflict only in IE7 (and prob 6 too). Anyway after much gnashing of teeth I reduced the above code to below, and it all works fine now 🙂

    $('#find_address_postal').click (function () {
    $('.modal_form_postal').dialog('open');
    }); //end click handler
    
    $('#find_address').click (function () {
    $('.modal_form').dialog('open');
    }); //end click handler
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Modern browsers have multi-tab interface, but JavaScript function window.showModalDialog() creates a modal dialog that
Suppose multiple Modal Windows shown above each other. All of those have ShowInTaskbar =
I have seen links that open modal windows AND have a nice animation effect
I'm using jQuery Modal. I have two windows that are almost identical, just with
I have an open modal dialog (Windows Forms). I want, that the dialog is
I have a JInternalFrame window that needs to popup a modal dialog box when
I am trying to use Windows Workflow and have a model that looks similar
I have 4 buttons on a page. Each button opens a modal window and
I need a modal windows that tells the user to wait until I've finished
From a couple of preliminary tests it seems that EnumWindows always returns windows in

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.