views:

269

answers:

1

All,

When I click a link on a web page, a JQuery UI Dialog opens up and it loads some ajax content into it. If I click a link inside this dialog, it opens up a child dialog. When I click "OK" in the child dialog, I want the child dialog to close and refresh the ajax content in the parent dialog.

How can I do this?

Thanks

+1  A: 

Do you already have the code that closes the child dialog ? Is it an alert() call ? If so, simply add a

        location.reload();

after the alert call. If it's something more complicated like a link, try

$('a.link-that-closes-dialog').click(function(){
  //Code to close the dialog
  location.reload();
 });
sjobe