Is it possible to show multiple modal-dialogs above each other?
It should work like this:
1) User clicks link that opens first modal dialog
2) in first modal dialog, user clicks another link that opens second modal dialog
3) in second modal dialog, user clicks another link that opens third modal dialog
4) ....
NOT: open multiple modal-dialogs with one click!
Update:
So it should be possible to some of you, but now I need to know why this doesn't work then:
C#
//When button pressed, this method is executed
ShowPopup(this.Page, "/_layouts/MyPage.aspx", "Account");
public static void ShowPopup(Page page, string url, string title)
{
if (page.IsPostBack && !page.ClientScript.IsClientScriptBlockRegistered("ShowMyPopup"))
page.ClientScript.RegisterClientScriptBlock(page.GetType(), "ShowMyPopup", "ExecuteOrDelayUntilScriptLoaded(function () {ExecuteOrDelayUntilScriptLoaded (openDialog('" + SPContext.Current.Site.Url + url + "', '" + title + "'),'MyJavascriptFile.js')}, 'sp.js');", true);
}
Javascript:
function openDialog(myUrl, myTitle) {
var options = {
url: myUrl,
width: 800,
height: 600,
title: myTitle,
allowMaximize: true,
showClose: true
};
SP.UI.ModalDialog.showModalDialog(options);
}
So first time it works, second not... Any help?