<canvas> element in IE

Hi there, I'm trying to develop a jQuery script that works both in standards compliant browsers, and IE (not that IE isn't a popular browser). I seem to be having trouble initializing a element in IE.


/*this is some of my jQuery javascript that works in Chrome / Safari & FF */
$('body').append('');
var canvas = document.getElementById("designer_grid");
var context = canvas.getContext("2d");

but for the life of me, even though I have included the following script reference for IE's implementation, all fails on IE

&ltscript type="text/javascript" src="js/excanvas.js">&gt/script>

Would you be in a position to give me some advice as to how I may solve this problem?

Kind Regards,

Mathew

Trackback URL for this post:

http://www.ruzee.com/trackback/282