[急]内容编辑器显示弹出窗口
问题描述:
我需要通过弹出窗口通知moss2007网站用户将网站移动到新位置,以便看起来明显可见。请帮助
Blitz
I need to notify the moss2007 site users with popup that the site is moved to new location so that things look obviously visible.Please help
Blitz
答
Hi Blitz,
Hi Blitz,
以下是在内容编辑器Web部件中添加模式对话框的演示:
Here is a demo to add a modal dialog in content editor web part:
<a href="javascript:openInModalDialog()">The Site moved to a new location, click here to learn more</a>
<script type="text/javascript">
function openInModalDialog()
{
var url = "http://newsite";
commonShowModalDialog(url,"resizable: no; status:no; scroll: no; help: no; center: yes; dialogwidth:800px; dialogHeight:500px;",RetrieveItemValue);
}
function RetrieveItemValue(retValue) {
alert(retValue); /* here do what you want */
}
</script>
根据我的测试,它适用于SharePoint 2010,您可以检查它是否在MOSS 2007中有效。
Per my test, it works in SharePoint 2010, you can check if it works in MOSS 2007.
此外,这里有一些类似的帖子供您参考:
Besides, here are some similar post for your reference:
http://swatipoint.blogspot.com/2011/07/modal-popup- with-content-editor-webpart.html
http://www.sharepointbinder.com/blog/how-to-create-a-pop-up
祝你好运,
Grace Wang
Grace Wang