Excel JS Add-In Shared Runtime Work with IE11? - excel

It looks like the shared runtime example on the page below is focused on situations where the Add-In browser is using edge (as opposed to IE11). I am not able to update the window.sharedState data and see the updates in my Task Pane. I can see the updates if I troubleshoot the add-in by hitting localhost with my Chrome browser. Any thoughts on how to make this work? I believe my browser is IE11 because my windows version is 1809.
screenshot of my add-in project

Related

VS2019 MS Edge Javascript Debugging with Razor Syntax

In Razor Page Model, breakpoint will not work if we mix that .cshtml or .js file with razor syntax.
But we were still able to insert the debugger keyword to the javascript and it will break.
However this feature is no longer working with the latest :-
Microsoft Visual Studio Community 2019
Version 16.9.4
Microsoft Edge - Version 90.0.818.39 (Official build) (64-bit)
It will stops at the point when it saw the debugger keyword, but the dynamically generated page (Razor .cshtml) is blank.
Please first check Enable JavaScript debugging for ASP.NET (Chrome, Edge and IE) option under Tools-->Options-->Debugging-->General.
Then, start debugging and set the breakpoint under the active Script Documents from Solution Explorer. Refer from this official document.
And you cannot automatically hit breakpoints on files generated with Razor syntax (cshtml, vbhtml). You have to try the following ways provided by the document.
If the steps it provided do not help with Edge, I think you should report a problem to the Team under VS menu Help --> Send Feedback --> Report a Problem.
As a suggestion, if my suggestion does not satisfy you, you can ignore it:
You would better not use Razor syntax under JS file. You could use a separate js file and then use write your js file and then import this single js file into cshtml.

Relatve URL in distant file (XLS)

I have a problem at my job.
I am totally dependent on a website which must certainly date from the eighties ...
In one of the web pages, there is a link to download an excel file (xls). Let's say for example http://example.excel.xls
In this file, there are hyperlinks to other files (sometimes i think the death penalty is a good thing! ^^).
These links are relative :'( (for example \myfile.pdf)
Internet explorer, strangely, are correcting these links by transforming them in absolute path (http://example.myfile.pdf)
Other browsers (chrome, firefox, even the old edge) don't do it natively. By clicking on the link, we arrive in the local cache, where of course there arenot my files ...
I will soon have to remove IE from computers.
I had considered sending a bombshell on the administrators of this website, but afraid of legal repercussions :)
Is it possible, via settings, an addon or whatever, to make one of the browsers behave in the same way as IE?
I am very grateful for the help you will give me
You had asked,"Is it possible, via settings, an addon or whatever, to make one of the browsers behave in the same way as IE?"
I suggest you make a test with the MS Edge (Chromium) browser.
The MS Edge (Chromium) browser comes with the IE mode feature.
IE mode on Microsoft Edge makes it easy to use all of the sites your organization needs in a single browser. It uses the integrated Chromium engine for modern sites, and it uses the Trident MSHTML engine from Internet Explorer 11 (IE11) for legacy sites.
To configure IE mode, I suggest you refer to Configure IE mode policies. You can refer to the document and configure the necessary policies to enable the IE mode.
It can help you to load your legacy site in the Edge browser using the IE mode which can help you to fix the said issue.

Get already opened Edge (not IE) browser window(s) and scrape contents

I used to be able to find all open IE windows via VBA and was able to access one of the already-opened page's contents in Excel with the objShell object mechanism. I didn't--and don't need--direct "control" (automation) of the browser in terms of pushing buttons, opening urls, etc.
I know automation of Edge is not possible just using VBA, but is there any ability to simply 1.) get a list of MS EDGE open windows and 2.) retrieve the elements within a given (already opened) window without resorting to downloading drivers and utilities like Selenium?
As Tim Williams had informed you there is no COM interface available for the Edge browser.
Microsoft has not provided any way to automate the Edge browser using VBA automation.
So, there is no way to fetch the already opened instance of the Edge browser and retrieve elements with the help of VBA.
I suggest you use the officially recommended way Selenium Web Driver to automate the Edge browser.
I have seen that you want to avoid the Selenium Web Driver approach but at present, this is the only way available to automate the Edge browser.
If you are having any issues with the Selenium Web Driver approach then you can inform us about it. We can try to provide suggestions for it.
Thanks for your understanding.
Please note: I'm the author of this software
You can connect to active instances of Edge with IE mode using Internet Controls for Edge: https://pomio.dk/internet-controls-for-edge/.
Internet Controls for Edge is a COM component and it exposes the same APIs as Microsoft Internet Controls (for Internet Explorer), so if you've already created some automations of Internet Explorer (using Microsoft Internet Controls), then it should be straight forward to move to Internet Controls for Edge.

IE11: open jquery dialog to load external url in standards mode when the root html page is in quirks mode

This requirement is on SAP Portal. The current version of Portal doesn't allow me to integrate SAP UI5 application on IE, primarily due to SAP Portal runs on Quirks mode, and UI5 runs on standards mode. We are on IE11, so no issues in Chrome/FF. So, the solution SAP proposes is to open the UI5 application in a new window, and the customer is not happy with this solution. So I was looking for ways to handle this using JQuery. As the Portal runs on Quirks mode (root) when I open the UI5 application (iframe/div) on a jquery dialog its resulting in opening in Quirks mode only.
I've read few posts in SO in similar context, so checking with the experts here to see if there is a way or solution to open/load ui5 application in standards mode using JQuery or JS, as it can't run in quirks mode in IE while on Portal.
Let me know if i need to provide any more details, as my earlier post was put on hold.
Unfortunately, the solution that SAP proposes is the only one available to you.
IE absolutely cannot render standards mode and quirks mode in the same page, not even if they are in different frames or iframes.
The only way you can mix between the two is by having them in separate windows.
It's worth adding here that anything still running in quirks mode is living on borrowed time. Quirks mode is not supported in Microsoft's new Edge browser. For now, you can still run IE11, but there will come a time when support for IE11 is dropped and Edge will become the only MS browser. At that point, you will not be able to use anything that requires quirks mode. I would urge you to plan to make the upgrade now while the transition will be easy, rather than waiting till it is forced on you.

How to control "Browser mode" in Internet Explorer 9 by commandline

I still haven't been able to find a solution to this problem. We have an application that launches a browser window but the underlying third party addin that we are using doesn't support IE9 yet. I know that I can switch to Browser mode for IE8 by tapping F12 and select this.
Is there a way to control this on the startup in the command line? Cause as it is now we have problem when running the application when it opens new windows and automatically tries to execute this third party addin that is required.
And no we haven't an option, we are forced to use this third party addin but would like to support that installation of IE9 as well.
I don't know if you have any control over the content being rendered in the browser, but if you do, IE lets you use META tags to force the browser into a rendering mode of a specific IE version. More info at MSDN right here
Also, further down the page there are instructions on how to set up your web server to tell IE which mode to use when it's requesting the page. (If that is of any use to you)
Unfortunately all information I can find on the subject (and I did a comprehensive search for my own project) indicates that there is no such option, or at least not in the general release
of IE.
Here's Microsoft's "official"
list of currently supported IE command line options

Resources