在sharepoint 2007中弹出

时间:2010-11-18 13:21:29

标签: sharepoint sharepoint-2007

我在sharepoint中使用ajax模式弹出窗口,但是程序集引用有些缺失,如果我试图放置那些程序集引用,页面将转到错误页面。除了在sharepoint中使用ajax控件弹出窗口之外,还有其他选择吗?我想在我当前的项目中严重显示弹出窗口。请帮我解决这个问题

1 个答案:

答案 0 :(得分:6)

您可以使用默认情况下SharePoint使用的commonShowModalDialog()。这是一个示例代码段

//Opens the popup window
function openPopup()
{
    commonShowModalDialog("/_layouts/samplepage.aspx", "resizable: yes; status:no; scroll: no; help: no; center: yes; dialogwidth:410px; dialogHeight:300px;", callback);
}

//callback function to retrieve any values from popup
function callback(ret)
{
    alert(ret);
}

要从弹出窗口返回值window.returnValue。希望它有所帮助。