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/
The following code was not working in IE7:
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 🙂