Friday, July 25, 2014

Popup dialog in SharePoint using javascript

function popupDialog(){
var options = SP.UI.$create_DialogOptions();
options.width = 800;
options.height = 800;

options.url = "http://serverURL";

options.dialogReturnValueCallback = Function.createDelegate(null, DialogCallback);
SP.UI.ModalDialog.showModalDialog(options);
}
function DialogCallback(result,value){
window.location.href = "http://callbackURL";
}

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...