
Untitled
By: a guest on
Aug 10th, 2012 | syntax:
None | size: 0.92 KB | hits: 20 | expires: Never
how to refresh parent page when I use SP.UI.ModalDialog.OpenPopUpPage?
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);
}
SP.UI.ModalDialog.OpenPopUpPage(dialogUrl, null, dialogWidth, dialogHeight);
function CustomPageRefresh(dialogResult, returnValue) {
document.location.reload(); //or another method you need to refresh the page in your case
}
function OpenPopupInDialog(dialogUrl, dialogWidth, dialogHeight) {
SP.UI.ModalDialog.OpenPopUpPage(dialogUrl, CustomPageRefresh, dialogWidth, dialogHeight);
}