如何在关闭sharepoint对话框后刷新父页面?这是我打开一个弹出窗口的代码。
<input type="button" value="Add" class="button submit" style="width: 80px" onclick="javascript:OpenAttachmentUpload()" />
<script type="text/javascript">
//User Defined Function to Open Dialog Framework
function OpenAttachmentUpload() {
var strPageURL = '<%= ResolveClientUrl("~/Dialogs/AttachUpload.aspx") %>';
//OpenFixCustomDialog(strPageURL, "Attachment");
OpenCustomDialog(strPageURL, 350, 200, "Attachment");
return false;
}
</script>
这是脚本。
function OpenCustomDialog(dialogUrl, dialogWidth, dialogHeight, dialogTitle, dialogAllowMaximize, dialogShowClose) {
var options = {
url: dialogUrl,
allowMaximize: dialogAllowMaximize,
showClose: dialogShowClose,
width: dialogWidth,
height: dialogHeight,
title: dialogTitle,
dialogReturnValueCallback: Function.createDelegate(null, CloseCallback3)
};
SP.UI.ModalDialog.showModalDialog(options);
}
打开后,当我关闭弹出的(~/Dialogs/AttachUpload.aspx)时,我想刷新父页面。我该怎么做呢?我在谷歌上搜索了SP.UI.ModalDialog.RefreshPage,但仍然找不到答案。谢谢。
另外,我对SharePoint了解不多。
https://stackoverflow.com/questions/8426773
复制相似问题