I want to refresh the parent page when I close my jQuery dialog.
this is the code I use for my dialog. I tried top.opener.location
but it did not do nothing but put me on top of the page.
$("#dialog").dialog({
height: 700,
width: 600,
closeOnEscape: true,
title: 'View',
close: function(event, ui){
top.opener.location.reload(true);
}
}).dialog("open");
The jQuery dialog opens on the same page, not in a new window. So simple refresh the current page:
location.reload(true);
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