试图从SharePoint 2013中的对话框中打开一个全部在.aspx页上运行的对话框。我可以打开第一个对话框,它会响应单击以打开第二个对话框,然后快速闪烁并消失。搜索了一会儿之后我打开了堆栈,但仍然没有结果...我在做什么错了?
`<script type="text/javascript">
function openDialog(pageUrl) {
var dialogOptions = SP.UI.$create_DialogOptions();
dialogOptions.url = pageUrl;
dialogOptions.title = "";
dialogOptions.allowMaximize = false;
dialogOptions.showClose = true;
dialogOptions.stack = true;
SP.UI.ModalDialog.showModalDialog(dialogOptions);
return false;
}
</script>
</head>
<body>
<img src="<image address>" usemap="#image-map" border="0">
<map name="image-map">
<area href="<aspx address from SharePoint document library>" onclick="openDialog('<aspx address from SharePoint document library>');" coords="58,204,256,230" shape="rect">`