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