How to close jquery modal dialog and refresh parent page

I cannot close the jquery dialog. Below is my code.

I have a parent page called academ.asp that will open a modal dialog using a jquery plug.

function openPopupDialog(location, windowTitle, heightValue, widthValue) {

    var $dialog = $('#dialogWin').load('submission.asp')
        .dialog({
              autoOpen: false,
              modal: true,
              draggable: false,
              resizable: false,
              title: windowTitle,
              width: widthValue,
              height: heightValue
         });

    $dialog.dialog('open');

    return false;
}

A fashionable window will load the page "submission.asp"

I will do some presentation in my modal window using ajaxForm as shown below: paperForm = my form name

How to close a modal and updated parent page?

Thank you in advance:)

+5
source share
1 answer

The modal opens on the same page, so you do not need to close it. Just reload the page:

location.reload(true);
+5
source

All Articles