Open a url in the computer default browser Office Add-in - outlook

I currently have an outlook add-in using Office.js and I could not find a solution on how to open a url in the computers default browser. I looked over the Open an html page in a default browser from an add-in but none of the solutions helped me where it was indicated to open a new questions if we still have issues.
Currently I have tried to open the url like this:
<div
className={className}
onClick={() => window.open(url)}
>
{children}
</div>
and
<a
href={url}
target="_blank"
rel="noopener noreferrer"
>
{children}
</a>
Unfortunately, both of this examples opens a office dialog with the browser embedded.
The only weird issue is that on the development build, it always opened correct, but not in production. (Office 365 on windows 10)

Related

Telegram icon for font awesome not showing up

On my website built using Joomla 4, the following works fine (it displays the whatsapp icon):
<span class="fa fa-whatsapp"> </span>
But this doesn't (trying to display the telegram icon):
<span class="fa fa-telegram"> </span>
Although the same code for displaying telegram icon works on an older site built using Joomla 3.
I observed that, on old site, the following code is present in font-awesome.css and font-awesome.min.css. So I added the same code in the new site as well but it still doesn't work (just displays a box):
.fa-telegram:before {
content: "\f2c6";
}
Any idea why is this happening?

Opening other reports from a report (Working in webplayer)

Is there a way to open other dashboards/Reports ( saved in same server) from a report in web player.
I tried some python scripts which is used to access webpages but none of them is working in webplayer. My client want this to happen using buttons. So i prefer python scripts than HTML.
Much appreciated
Download an image of the button you want to use, like this one.
Add this image to a text area. Edit Text Area > Insert Image > (Select the downloaded image). Now you will see your "Button" image.
Edit the HTML and use href to the web page you care about. Notice the src= will already have your image name.
<a href="http://finance.yahoo.com/quotes/TIBX,Spotfire,S,Products?ltr=1&bypass=true">
<img src="ff08c65b55ab4b36acd5dacc78f03eea.png" border="0">
</a>

How do I include a phone number and icon on a Jekyll theme?

There isn't a parameter for phone numbers under the social contact area in the _config.yml file.
I tried to make one and then added a font awesome icon in the _includes directory but it didn't turn out the way I expected it to work.
For example on my site http://dannguyen.me I have several social icons. I would like to add a FA icon for phone number as well, but I couldn't find any good resources.
Does anyone know how to do this?
I'd try using the icon in SVG format and insert it into the HTML inline. This would allow you to target it with css as well which can be handy.
If you want to use Font Awesome you should check, which is the correct icon you want (most likely fa-phone).
You can then add the following block to your page:
<a class="social-btn" href="tel:123456" target="_blank" rel="noopener noreferrer">
<i class="fa fa-fw fa-phone"></i>
</a>
Which theme are you using? Most likely you'll have to overwrite some of the content here.

aria-hidden true read by JAWS

Using jQuery add role alert in #div1, read #div2 content even if it is hidden for JAWS.
<div id="div1">
some content
<div id="div2" aria-hidden="true">
some content 2 for div
</div>
</div>
Support for the aria-hidden attribute was added to JAWS in their 13.0.718 update (February 2012). See the full change log below:
http://www.freedomscientific.com/downloads/jaws/JAWS13-previous-enhancements.asp.
JAWS now recognizes the aria-hidden attribute so that text that is
supposed to be hidden is no longer announced.
It seems to work for me, but I've noticed that tabbable content wrapped in a "hidden" container can still be navigated to and read by JAWS.
Currently, JAWS does not support aria-hidden state in both Internet Explorer and Firefox.
You can use role="presentation" though it is not recommended.
See also:
Official JAWS aria support list
Donald Evans's blog

Problem with Outlook plugin and webbrowser

I've created a couple of Office plugins. The plugin shows a set of html files installed on the clients computer. The plugin uses a COM-accessible assembly which shows a WinForm with a WebBrowser on it. The plugin makes the WebBrowser navigate to a file on the clients computer. The assembly is also used in other programs to show the same information.
When showing the local html files using a 'normal' browser (e.g. double clicking a file in Windows Explorer) the browser popup a security warning about running active content. This is because we have some javascript in it. This warning is supressed by setting the 'Allow active content to run in files on My Computer' in the Internet Explorer settings. This solves the issue using a 'normal' browser.
Funny enough the 'active content' warning is not shown when getting the same file using a Word/Excel/PowerPoint plugin. It calls the same assembly, using the same WinForm and using the same content. Despite the setting 'Allow active content to run from My Computer' being false, the content is shown without a warning and the javascript is executed.
Now, the problem and the real question is that Outlook does the reverse. No matter what I use for 'Allow active content to run from My Computer' the browser warning about the active content in the html file is shown. When I confirm the message and allow the scripts to continue, the javascript runs fine. So, even when I set the 'Allow active content to run from My Computer' to true, the warning is given.
I've gone through all (sort of) relevant settings in Outlook, but nothing helps.
I assume that Outlook is using some kind of private context for a webbrowser (probably because it is using a webbrowser object internally).
The real question is: how can I make the Outlook plugin respect the IE settings?
(I understand this is a long story and maybe not clear enough. Please let me know if I have to elaborate more).
I couldn't get rid of the security warning without lowering the security setting. And that is not an option: we are talking about a project that will be installed on millions of computers.
I decided to go another route. Let's see if we can make the browser trust the html pages. So, what to do to get rid of the 'Active content' warning.
First I investigated what exactly triggers the warning. That was easy: any tag in your html file will do. And I need script, so removing that isn't an option. But, when hosted from a website, the scripts run fine and don't suffer from a warning. So, I investigated if it is possible to run my files in the Internet-context.
I found out there is a way, at least for IE (which in my case is sufficient). If you save a webpage as a complete HTML file from IE, the browser adds a comment to the html to signal its origin. Something like: . If you later open that stored html file, the file is shown in the Internet context.
So, I tried adding to the html file. And, voila, the file is opened in the Internet context. The security warning about active content is gone and the scripts are executed fine.
But, that raised another problem. We have a couple of window.open statements in the scripts and using that causes he cross domain browsing problems that in recent IE versions are blocked. Even if you use a relative path in the window.open call, if fails and you end up with a blank window.
In our case, we can (probably) decide to get rid of the window.open calls. But, if a reader ever finds a solution for using window.open in this scenario, I would be very happy if you let me know.
So, for now: case closed...
Internet explorer use Mark of web in such cases
<!-- saved from url=(0014)about:internet -->
<!doctype html>
<!-- saved from url=(0023)http://www.contoso.com/ -->
<html>
<head>
<title>A Mark of the Web Example.</title>
</head>
<body>
<p>Hello, World</p>
</body>
</html>
More info from here
https://msdn.microsoft.com/en-us/library/ms537628(v=vs.85).aspx

Resources