c# - Sharepoint modal dialog from anotother dialog -
when user clicks on button there appears sharepoint modal dialog. popup shows user confirmation message. working.
now want following: when users clicks on yes button, first popup closes , , new modal dialog opens.
is possible? , how? or can resize dialog dynamicly when he's open?
here methods open dialogs:
function openpopup() { var options = sp.ui.$create_dialogoptions(); options.url = "popup.aspx"; options.width = 230; options.height = 235; options.title = ""; options.dialogreturnvaluecallback = function.createdelegate(null, closecallbacknew); sp.ui.modaldialog.showmodaldialog(options); } function opensecondpopup() { var options = sp.ui.$create_dialogoptions(); options.url = "popup2.aspx"; options.width = 630; options.height = 235; options.title = ""; options.dialogreturnvaluecallback = function.createdelegate(null, closecallbacknew); sp.ui.modaldialog.showmodaldialog(options); }
is not simple as
- create copy of function
closecallbacknew
calledclosecallbacknewsecond
- change
opensecondpopup
reference new copy instead of original - add call
opensecondpopup
@ end ofclosecallbacknew
, referencing dialog result call if user clicked yes
it seems should call second popup when first closed.
Comments
Post a Comment