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 called closecallbacknewsecond
  • change opensecondpopup reference new copy instead of original
  • add call opensecondpopup @ end of closecallbacknew, referencing dialog result call if user clicked yes

it seems should call second popup when first closed.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -