Update the link url in the Moss 2010 to call SP.UI.ModalDialog.showModalDialog
2012-09-21 15:23
447 查看
Copy the code to "<script type="text/javascript"> var navBarHelpOverrideKey = "WSSEndUser";" :
<script type="text/javascript"> var navBarHelpOverrideKey = "WSSEndUser"; $(document).ready(function () { var span1 = $("span").filter(function () { return $(this).text() == "NewIdea" && $(this).parent()[0].tagName == "A"; })[0]; if(span1) { var a = span1.parentNode; a.href = "http://moss/Lists/TestCustomList/NewForm.aspx?Source=http://moss"; a.onclick = openDialog; } }); function CallBackfromDialog(dialogResult) { alert(dialogResult); }; function openDialog() { var options = { url: "http://moss/Lists/TestCustomList/NewForm.aspx?Source=http://moss", width: 800, height: 600, title: "New Idea", dialogReturnValueCallback: CallBackfromDialog, }; SP.UI.ModalDialog.showModalDialog(options); return false; } </script>
相关文章推荐
- SharePoint 2010 使用SP.UI.ModalDialog.showModalDialog(options)对话框框架传值以及关闭窗口
- SharePoint 2010 使用SP.UI.ModalDialog.showModalDialog(options)对话框框架传值
- SharePoint 2010 使用后台代码向SP.UI.ModalDialog.showModalDialog传值
- SharePoint 2010 使用SP.UI.ModalDialog.showModalDialog(options)对话框框架传值
- 关于SP.UI.ModalDialog.showModalDialog()的使用
- SharePoint 2013 中使用 SP.UI.ModalDialog.showModalDialog时 showModalDialog 未定义
- SP.UI.ModalDialog.showModalDialog杂记2
- SharePoint 2013中使用SP.UI.ModalDialog.showModalDialog时showModalDialog未定义的解决办法
- How to hide my site and my document link in the right-top corner of sharepoint 2010
- How to Activate the Drop Down Menu in MOSS 2010 Sites
- How to Activate the Drop Down Menu in MOSS 2010 Sites
- The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web
- Eclipse:Could not create the view: Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.j
- 错误代码: 1582 Incorrect parameter count in the call to native function 'str_to_date'
- 每日总结:DIV弹层遮盖、DIV设置透明背景色、JS调用SharePoint 中的SP.UI.ModalDialog弹出遮盖层显示
- Link - Windows Universal App - Open Url/Rate the App/MessageDialog
- gevent: AssertionError: Impossible to call blocking function in the event loop callback
- How to update the version of pgfplots in MiKTeX
- How To Change the Supplier Bank Account Masking in UI (Doc ID 877074.1)
- How to disable the update manager in ubuntu 12.04