Open an HTML5 window from a non-HTML5 window in IE (Internet Explorer)

We have a business application for thin clients, and we are going to use HTML5 on the client side (at first only for certain tasks, for example, to create SVG drag'n'drop UI and Canvas).

I know that I canโ€™t call an HTML5 page in an iframe on a page other than HTML5 in Internet Explorer, because it will be displayed as a page other than HTML5, for example, its parent.

I can call it in a new window through javascript. But that doesn't work either. The base application has an open.window ('HTML5.asp', '_ empty') function, where HTML5.asp uses SVG and Canvas. And yes, it is tested, it works when called from an HTML5 environment.

Is there any solution or workaround to make it work? Thanks guys!

UPDATE

Thanks for the help, finally I found an error. I tried to create a simplified code for you, but I could not reproduce the error, so I again switched to our algorithm, first block by block, then line by line.

We have a dictator function, which should be the same in all systems, but itโ€™s not :) And I used the format function from there, and HTML5 pages suffered because of this.

Thanks again:)

+4
source share
1 answer

This is quite a coincidence: I just accidentally saw the Google Chrome Frame IE plugin, which apparently allows you to use Webkit and the V8 JS engine in IE.

On the web page we will add the tag:

<meta http-equiv="X-UA-Compatible" content="chrome=1" /> 

(Of course, Chrome Frame needs to be installed. If this is not the case, perhaps redirecting to the installer might be an option ...)

As I said, I just had to read about it a few minutes before I saw your question, so I donโ€™t know if this will be useful to you (and I have no experience using it).

Good luck

0
source

Source: https://habr.com/ru/post/1446192/


All Articles