0

I need a way to reload my parent page when I close my jqUI modal window. Somehow or the other, what I am currently doing is not working (imagine that)...

$('div#addPat').live('dialogclose', function (event) {
                debugger;
                location.reload(true);
            });

I never get to the debugger statement so I assume just assume that my event is wrong...

How do I get the close dialog event and how can I use it to reload the page... I think I have the second part figured out.

4

1 に答える 1

2

これを試して:

 $( "div#addPat" ).dialog({
 close: function(event, ui) {
      debugger;
      ....
  }
});

参照: http://jqueryui.com/demos/dialog/#event-close

于 2012-07-26T19:22:16.030 に答える