On Oct 22, 2013, at 11:07, Shehzad Siddique wrote:
> I can't seem to make Canviz work on IE (9 or 10) and Chrome. Even the hello world example does not work. The index.html page comes up with everything BUT the canviz Hello World graph. I comes up fine in FireFox though.
Thanks for letting me know about this problem. Are you using Canviz 0.1 or the latest code in the repository trunk? I spent a couple months recently making many improvements to Canviz, but have not yet released 0.2.0 which will include these changes. If you’re not using trunk yet, please give it a try. It definitely works on Chrome on OS X for me. I have not tried Chrome on other operating systems but I assume it would work the same.
> I have even tried to uncommnt the following line :
> <script type="text/javascript" src="../../excanvas/excanvas.js"></script>
The line isn’t commented: it’s a conditional comment, which is an Internet Explorer feature that lets you include or exclude code for IE only, even varying by IE version. In the case of the excanvas JavaScript, it’s only needed on IE versions less than 9, because those versions do not have a canvas. IE 9 and later do have a canvas so they don’t need excanvas. Canviz 0.1 was released before I knew that, so in that version the conditional comment includes excanvas on all versions of IE (“<!--[if IE]>”), which is wrong. In r369 I changed this to IE less than 9 only (“<!--[if lt IE 9]>”).
> There must be something I am missing (or doing something silly). Please guide if Canviz works on IE (9). thanks.
Because IE 9 and later include a canvas, I assumed Canviz would work on them, but I have not yet tried. I need to finally set up virtual machines for those IE versions and test them.