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......
Subscribe to:
Post Comments (Atom)
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...
-
Progress Bar for Tasks List in SharePoint 2010 Now we are going to see how to show the progress of tasks in SharePoint We are goin...
-
Hide column on Sharepoint Dispform.aspx, Editform.aspx, Newform.aspx using a JavaScript. Copy the script on desired form under the <as...
-
EnsureScriptFunc('offline.js', 'TakeOfflineToClientReal', function() { TakeOfflineToClientReal(2, 53, 'http...
No comments:
Post a Comment