i'm not able to close a jquery dialog. Below are my code.
我无法关闭jquery对话框。下面是我的代码。
I have a parent page called academic.asp which will open a modal dialog by jquery plug in.
我有一个叫做学术的家长页面。使用jquery插件打开模态对话框的asp。
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"
我的模式窗口将加载一个页面“submissionon.asp”
i will do some submission in my modal window by using ajaxForm as below: paperForm = my form name
我将在我的模式窗口中使用ajaxForm进行提交,如下所示:paperForm =我的表单名
How to close the modal and refresh parent page?
如何关闭模式和刷新父页面?
Thanks in advance :)
提前谢谢:)
1 个解决方案
#1
5
The modal is opened on the same page, so you don't have to close it. Simply reload the page:
模式在同一个页面上打开,所以您不必关闭它。简单地加载页面:
location.reload(true);
#1
5
The modal is opened on the same page, so you don't have to close it. Simply reload the page:
模式在同一个页面上打开,所以您不必关闭它。简单地加载页面:
location.reload(true);