Hi.
I tried to make excanvas work on dinamically created canvas.
Included excanvas.js, created new canvas element
var parent = document.getElementsByTagName('body')[0];
var cnvs = document.createElement('canvas');
cnvs.width = "300px";
cnvs.height = "200px";
cnvs.id = "cnvs_1";
G_vmlCanvasManager.initElement(cnvs);
parent.appendChild(cnvs);
But I was given error: Invalid argument (excanvas.js - line 154).
And no graphics of course.
I find out (by placing alert()), that script breaks after
G_vmlCanvasManager.initElement(cnvs);
But don't get why is that so.
I have the last version of excanvas, WinXP and IE8.
Thnx in advance.
Original issue reported on code.google.com by ffdi...@gmail.com on 12 Mar 2013 at 11:57
Original issue reported on code.google.com by
ffdi...@gmail.com
on 12 Mar 2013 at 11:57Attachments: