Search code examples
jqueryinternet-explorer-8canvasexcanvasbeautytips

Possible to get Excanvas to work in IE 8?


I used to work on a jQuery plugin named 'BeautyTips' and it was working just fine. But, since I've installed IE 8, this plugin stop working because it needs Excanvas to make IE draw the vectors, images etc.

I've tried to download the newer version of Excanvas but it's not working at all...


Solution

  • Try appending the canvas element to the document before initializing it using excanvas:

    var foo = document.getElementById("targetElementID");
    var canvas = document.createElement('canvas');
    canvas.setAttribute("width", 620);
    canvas.setAttribute("height", 310);
    canvas.setAttribute("class", "mapping");
    foo.appendChild(canvas);
    canvas = G_vmlCanvasManager.initElement(canvas);