Outlook 插件窗口.open [英] Outlook Addin window.open

查看:62
本文介绍了Outlook 插件窗口.open的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是插件的新手,只想执行一个简单的任务,例如在任务栏中创建一个带有链接的按钮,用于打开浏览器,就是这样.

I´m new to the addins, just want to perform a simple task as creating a button with a link in the taskbar that opens a browser and that´s it.

到目前为止,根据 ms 教程创建了该项目,并且一切正常(解决了证书问题).

So far created the project based on ms tutorial and everything is working great (with fixed certificate problems).

据我所知,这应该就像创建一个带有 ExecuteFuncion 操作映射到带有 window.open 的 javascript 函数的按钮一样简单例如

To my understand this should be as easy as to create a button with an ExecuteFuncion actions mapping to a javascript function with a window.open e.g.

function windowOpen(event)
{
    window.open("https://www.microsoft.com");
    event.completed();
}

感谢您的帮助,

问候,

安德烈

推荐答案

出于安全原因,Outlook 不支持在加载项内直接打开 window.open.要在 Outlook 加载项中打开一个窗口,您可以使用 displayDialogAsync API(文档 此处.) 我们推荐 本指南 了解在加载项中显示对话框的端到端用法.

For security reasons, Outlook does not support window.open directly inside of Add-ins. To open a window in an Outlook Add-in you can use the displayDialogAsync API (documentation here.) We recommend this guide to understand end-to-end usage of displaying a dialog in an Add-in.

这篇关于Outlook 插件窗口.open的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆