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
-~----------~----~----~----~------~----~------~--~---