jquery - Unable to Open a link from Outlook Ribbon is javascript API without being a popup window -


i creating outlook add-in javascript api, , ribbon has button defined below...

<item id="msgcheckhelp">   <label resid="checkhelplabel"/>   <supertip>     <title resid="checkhelptitle"/>     <description resid="checkhelpdesc"/>   </supertip>   <action xsi:type="executefunction">     <functionname>checkhelp</functionname>   </action> </item> 

and then, check function defined here below...

function checkhelp (event) {     window.open("help", "_blank");     event.completed(); } 

the problem is, not recognized user event. tried looking @ displaydialogasync alternative window.open, loads popup well.

if display page within application need specify in manifest different action type follow ...

<action xsi:type="showtaskpane">     <sourcelocation resid="apphelp" /> </action> 

and inside resources section specify url resource id follow ...

<bt:urls>     <bt:url id="apphelp" defaultvalue="https://domain.../help.html"/> </bt:urls> 

now, clicking on ribbon button, task pain open , display resource.

please note: action "executefunction" provides hook functionfile element designed run functions without ui interaction; cannot use window.open() function.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -