Refresh parent page in jquery dialog

I want to refresh the parent page when I close the jQuery dialog.

this is the code i use for my dialog. I tried top.opener.location but did 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"); 
+7
javascript jquery jquery-ui
source share
1 answer

The jQuery dialog opens on the same page, not in a new window. So just refresh the current page:

 location.reload(true); 
+15
source share

All Articles