Iam using 3 dialogs in my page for 3 diff purpose.
Iam creating dialog as
$(".dialog").dialog({
height: 238,
width: 465,
resizable: false,
title: "Edit"
});
After my action done on dialog iam closing dialog as
$(".ui-dialog").hide();
When i hide this way dialog is not getting opening for 2nd time, So tried showing dialog starting of function like
$(".ui-dialog").show();
My problem started here....
When i show dialog, Dialogs are getting opened multiple times, STill the first openined dialog is getting Overlapped wth the second dialog,
Is there any proper way to hide and Show dialog without overlapping or in clean way.
Syntax: $(selector).hide(speed,callback); $(selector).show(speed,callback); The optional speed parameter specifies the speed of the hiding/showing, and can take the following values: "slow", "fast", or milliseconds.
Hiding the dialog window is as simple as setting the Visible property to False.
jQuery hide() Method The hide() method hides the selected elements. Tip: This is similar to the CSS property display:none. Note: Hidden elements will not be displayed at all (no longer affects the layout of the page).
You need to use the close(hide) and open(show) functions provided by the widget
$(".ui-dialog").dialog('close');
$(".ui-dialog").dialog('open');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With