IE11 and addEventListener

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
langdon
New Cone
New Cone
Posts: 5
Joined: 13 Dec 2013 16:31

IE11 and addEventListener

Postby langdon » 06 May 2014 17:55

I can't seem to get events working in Internet Explorer 11.

Is my only option emulating IE10 <meta http-equiv="X-UA-Compatible" content="IE=10" />?

I'm using code from the WebPlugin documentation which works fine in IE10/9 mode, but not IE=edge (11)...

Code: Select all

function registerVLCEvent(vlc, event, handler) { if (vlc.attachEvent) { // Microsoft vlc.attachEvent (event, handler); } else if (vlc.addEventListener) { // Mozilla: DOM level 2 vlc.addEventListener (event, handler, false); } else { // DOM level 0 vlc["on" + event] = handler; } }

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: IE11 and addEventListener

Postby Jean-Baptiste Kempf » 07 May 2014 16:05

No idea what are the new things of IE11
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

langdon
New Cone
New Cone
Posts: 5
Joined: 13 Dec 2013 16:31

Re: IE11 and addEventListener

Postby langdon » 07 May 2014 19:56

No idea what are the new things of IE11
They deprecated use of attachEvent and are now using addEventListener as the standard suggests. I suspect that's where the issue lies.

FireBreath/FBVLC had the same issue when IE11 came out but they patched it. I can't use FBVLC on Linux though. =[

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: IE11 and addEventListener

Postby RSATom » 08 May 2014 04:46

how much do you need fbvlc on linux? :)

langdon
New Cone
New Cone
Posts: 5
Joined: 13 Dec 2013 16:31

Re: IE11 and addEventListener

Postby langdon » 10 May 2014 15:32

how much do you need fbvlc on linux? :)
Hehe, eventually we will absolutely need it or we'll have a very downgraded experience on Linux (I'm now realizing how wonderful FBVLC is! :) :)).

We have it building internally but noticed the lack of what appears to be drawing code -- (WindowAttached, WindowDetached, and RefreshEvent). Is that all that's missing for a Linux build?

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: IE11 and addEventListener

Postby RSATom » 10 May 2014 15:51

If you need it so much... hm, OK, I'll do it. What linux distro do you use?

langdon
New Cone
New Cone
Posts: 5
Joined: 13 Dec 2013 16:31

Re: IE11 and addEventListener

Postby langdon » 10 May 2014 15:54

If you need it so much... hm, OK, I'll do it. What linux distro do you use?
Oh wow! Currently we're using Ubuntu. Thank you x1000!

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: IE11 and addEventListener

Postby RSATom » 10 May 2014 15:59

good, I'm use it too. Will give you progress info within week or two.

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: IE11 and addEventListener

Postby RSATom » 21 May 2014 05:56

Good news. I've got working FBVLC's windowed mode on ubuntu. windowless will be next.

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: IE11 and addEventListener

Postby RSATom » 04 Jun 2014 18:50


langdon
New Cone
New Cone
Posts: 5
Joined: 13 Dec 2013 16:31

Re: IE11 and addEventListener

Postby langdon » 11 Jun 2014 16:00

Sweet, thank you! Running it through its paces now.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 20 guests