hi
i am displaying the jQUERY dialog popup
its working in first time
it not opening second time.
its working in first time
it not opening second time.
$(function () {
$('#lnkAddSubTask1').click(function () {
var mydiv = $('#popupdiv');
mydiv.dialog({
autoOpen: true, width: '1250', height:'auto',
open: function (event, ui) { $(".ui-dialog-titlebar-close").hide(); },
modal: true,
//close: function () {
// location.reload();
// //$('body').load('Budgeting.aspx');
//}
buttons: {
Close: function () {
//mydiv.closest('.ui-dialog-content').dialog('close');
window.location.reload();
//mydiv.dialog('close');
// mydiv.css()
}
}
});
// Load the content using AJAX
mydiv.load('AddSubTask.aspx');
// Open the dialog
mydiv.dialog('open');
});
})

Manas MohapatraRank #182 · 13.2K reputationPosted Feb 28, 2016, 8:41 PM EST
Ravi KumarRank #2,085 · 690 reputationPosted Feb 28, 2016, 8:58 PM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Feb 28, 2016, 9:22 PM EST
Ravi KumarRank #2,085 · 690 reputationPosted Feb 28, 2016, 9:40 PM EST
Rajeev PunhaniRank #551 · 4.4K reputationPosted Feb 28, 2016, 10:25 PM EST
Hi Ravi,
Please find the below link.
If the above solution is helpful then,accept the answer.
Thiru R80 reputationPosted Feb 28, 2016, 11:49 PM EST
Dear Ravi,
The below said code will work as you expected .