Software Technology Tips

JavaScript


 

function CustomActions() {


 

function Button_Callback(dialogResult, returnValue) {

if (returnValue == '0') {

//do something

}

else if (returnValue == '1') {

//do something

}

else if (returnValue == '2') {

//do something

}

else{

//do something

}

}


 

var options = {

url: 'Page Url',

title: 'Custom Actions',

allowMaximize: false,

showClose: true,

width: 610,

height: 500,

dialogReturnValueCallback: Button_Callback

};

var did = SP.UI.ModalDialog.showModalDialog(options);

}

 

Closing modal dialog.(C#)

HttpContext.Current.Response.Write("<script type='text/javascript'>window.frameElement.commitPopup('some value')</script>");


Related Tags:

SharePoint, Sharpoint modal dialog, Closing Sharpoint modal dialog, Showing Sharpoint modal dialog, Closing Sharpoint modal dialog  with some return

Author: Niraj Ishwar

SharePoint

Let us Connect!

privacy
iso 9001 QA25 Nasscom Red Herring zinnov STPI iso 27001

copyright (c) Mindfire Solutions 2007-2013. Login