almende / chap-links-library

a web based visualization library for displaying graphs, networks, and timelines
http://almende.github.com/chap-links-library
Apache License 2.0
599 stars 167 forks source link

Timeline - IE11 - 'createStyleSheet' unsuported #336

Open ova2 opened 9 years ago

ova2 commented 9 years ago

IE 11 throws: SCRIPT438: Object doesn't support property or method 'createStyleSheet'

when I want to show timeline. In "emulation mode" or older versions of IE it works.

josdejong commented 9 years ago

Are u sure this error originates from the Timeline? In the source code(https://github.com/almende/chap-links-library/blob/master/js/src/timeline/timeline.js) of the Timeline there is no mention at all of createStyleSheet.

This can originate from using the excanvas.js script, for adding canvas support on IE8 and older. The Graph of chap-links-library uses canvas, hence you may have added the excanvas.js script for that?

Anyway, looking at the IE docs of createStyleSheet, they have dropped support for it in IE11 (it was an IE only thing anyway). Solutions:

ova2 commented 9 years ago

Thanks. I think we use excanvas.js.