Wednesday, September 21, 2011

Auto Refreshing Parent Page after close the SP Modal PopUp

Hi,This is my first post....

function createitem(obj) {
var options = {
width: 700,
height: 400,
url:obj,
title: "Create Item",
};
//For Auto Refreshing Parent Page
options.dialogReturnValueCallback = Function.createDelegate(null, CloseCallback);
//Open Pop Up
SP.UI.ModalDialog.showModalDialog(options);

//Parent Page Refresh
function CloseCallback(result, target) {

window.location.reload()

}

return false;
}


Hope it 'll be make your work easy......

No comments:

Post a Comment

How to launch a document by clicking a link to the file?

Word: <a href='ms-word:ofe|u|path/to/web/word/document.docx'>Link to document</a> Excel: <a href='ms-excel:o...