I wasn't able to reproduce it with that code. What versions of jQuery and jQuery UI? Also, any chance you could provide a full page sample (since you've got it down to a minimal case)? Maybe a pastie to http://jsbin.com/or http://paste.pocoo.org/ Thanks.
- Richard On Wed, Dec 17, 2008 at 10:04 PM, Nikola <[email protected]> wrote: > > Here's the close snippet I am using right now. When the original code > I had didn't work in IE7 I stripped it down to the bare essentials. > For some reason the below code will not close a dialog window (for me) > in IE7 but it works as expected in FF3. > > $(".MODAL").mousedown(function () { > $("#DIALOG-CONTENT").show(); > $("#DIALOG-CONTENT").dialog({ > modal: true, > width: 425, > height: 575, > title: 'SAMPLE TITLE', > overlay: {opacity: 0.8, background: "black" }, > resizable:false, > show:"drop", > hide:400 }) > }); > > $(".CLOSE-DIALOG").click(function(){ > $("#DIALOG-CONTENT").dialog("close"); > }); > > The button: <button type="button" class="CLOSE-DIALOG">Close Me</ > button> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
