stcherenkov / explorercanvas

Automatically exported from code.google.com/p/explorercanvas
Apache License 2.0
0 stars 0 forks source link

Unknown runtime error #65

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. You have a div in a document
2. Do this after document is loaded:
div.innerHTML = "<canvas id='c' width='100' height='100'></canvas>"
3. Initialize the canvas with id 'c' like so 
c = G_vmlCanvasManager.initElement(c);
You'll get a "Unknown runtime error".

PS: If I create the canvas with createElement and append it to the div,
everything works fine. This happends on version 3. On version 2 the same
approach works all the time.

Here's a test page:
http://groups.google.com/group/google-excanvas/browse_thread/thread/be28fce87eb0
4e50

Original issue reported on code.google.com by raduuco...@gmail.com on 8 Jan 2010 at 12:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The Wiki Instructions discuss this Unknown runtime error, with several suggested
solutions.

(Also related to issue 59.)

Original comment by ccti...@gmail.com on 25 Feb 2010 at 4:37

GoogleCodeExporter commented 9 years ago
Well the only suggested solution from twiki is in comments: not to inject canvas
elements in div elements with innerHTML but to use standard dom methods. Still 
that
excludes using ajax, cause usually an ajax call can return a chunk of html, and 
in
this case if that html contains canvases they're unusable. Since v2 used to 
work just
fine in this case, probably v3 should do the same...

Original comment by raduuco...@gmail.com on 26 Feb 2010 at 7:42

GoogleCodeExporter commented 9 years ago
I'm facing the same issue -- trying to initialize a <canvas> element defined in 
an
AJAX-loaded HTML chunk. It's not working in IE (I get the dreaded "Unknown 
Runtime
Error"), but working fine everywhere else.

Were you able to come up with a workaround?

Original comment by jjhar...@gmail.com on 27 Feb 2010 at 12:24

GoogleCodeExporter commented 9 years ago
no, I'm just using v2

Original comment by raduuco...@gmail.com on 1 Mar 2010 at 8:05