JonazMartinez / explorercanvas

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

"Unknown runtime error" in IE8 #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
View attached testcase "excanvas_ie8_bug.html" in IE8.

Expected output:
Simple blue square.

Actual output:
"Webpage Error"
Line: 144
Error: Unknown runtime error

What version of the product are you using? On what operating system?
ExplorerCanvas Release 3 on Windows Vista/IE8

Original issue reported on code.google.com by jreis...@gmail.com on 23 Mar 2009 at 6:27

Attachments:

GoogleCodeExporter commented 9 years ago
HTML source order of the canvas element seems to have an impact. See attached
"excanvas_ie8_works.html"

It seems that when the scripts are placed after the canvas element, it throws 
this
error. However, when the scripts come first, either in the HEAD or earlier in 
the
BODY, it works fine.

Original comment by jreis...@gmail.com on 23 Mar 2009 at 6:30

Attachments:

GoogleCodeExporter commented 9 years ago
IE only understands custom tags if there is a document.createElement('canvas') 
before 
the first occurrence of the canvas element.

This sucks but there is nothing we can do about this at the momen

Original comment by erik.arv...@gmail.com on 24 Mar 2009 at 5:52

GoogleCodeExporter commented 9 years ago
I added a simple howto wiki page describing how to use excanvas.js and I call 
out 
that the script tag must be in the document before any instances of canvas tags.

Original comment by erik.arv...@gmail.com on 24 Mar 2009 at 6:03

GoogleCodeExporter commented 9 years ago
Bummer. I should mention that this problem does in fact happen in all versions 
of
IE... and this makes sense by your explanation.

Thanks for the wiki entry!

Original comment by jreis...@gmail.com on 24 Mar 2009 at 5:06

GoogleCodeExporter commented 9 years ago
Sorry to revive this but i have that problem and i can't solve it...
The excanvas.js is included in the head and i am using jquery.canvas plugin to 
draw.
Canvas element is created ( $('#canvas').canvas() ) upon user action so by that 
time
everything should be loaded...
Using jquery 1.32, jquery.canvas 1.1, excanvas r3, on the same page are also 
loaded
jquery-ui.js?1.7.2 and jquery.tools.js?110
Thank you for any help

Original comment by atg...@gmail.com on 18 Sep 2009 at 2:48