Page 1 of 1

ActiveX GUI + HTML5

Posted: 24 Jan 2016, 13:25
by gallaxhar
I'm trying to make the following HTML5 demo work in an AHK ActiveX Gui window:
Link to demo: http://html5demos.com/drag

The image on the html5 demos page says it should be IE compatible
Image


Code: Select all

Gui Add, ActiveX, vdoc x0 y0 w800 h600, about:<!DOCTYPE html><meta http-equiv="X-UA-Compatible" content="IE=edge"> ; the "IE=edge" should force Shell.Explorer to use the latest IE renderer. I have internet explorer 11 and Microsoft Edge installed.
;doc.silent := true ; Surpress JS Error boxes, commented out for debugging
doc.Navigate("http://html5demos.com/drag")
Gui, Show, w800 h600, test
Return

GuiClose:
ExitApp
The error I get (js) is:
Image

Re: ActiveX GUI + HTML5

Posted: 25 Jan 2016, 03:38
by lexikos
the "IE=edge" should force Shell.Explorer to use the latest IE renderer.
It does. And then you load a different document, and it uses whatever renderer that document appears to need.

If you are displaying HTML which is not under your control, you will need to use the registry fix. Search "FixIE" for details.