开发者

How to close a jquery modal dialog and refresh parent page

开发者 https://www.devze.com 2022-12-17 22:41 出处:网络
i\'m not able to close a jquery dialog. Below are my code. I have a parent page called academic.asp which will open a modal dialog by jquery plug in.

i'm not able to close a jquery dialog. Below are my code.

I have a parent page called academic.asp which will open a modal dialog by jquery plug in.

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;
}

My modal window will load a page "submission.asp"

i will do some submission in my modal window by using ajaxForm a开发者_Go百科s below: paperForm = my form name

How to close the modal and refresh parent page?

Thanks in advance :)


The modal is opened on the same page, so you don't have to close it. Simply reload the page:

location.reload(true);
0

精彩评论

暂无评论...
验证码 换一张
取 消