title: Using HTML 5 into Html Web Resource in Crm 2011
body: <p>Hy everyone, how are you?.
  Well. The case is that I need to develop a web resource that will be embeded on Form's header.
  This Web Resource should draw a rectanble with a label for each value of a pick list that is being showed on the form.</p>
  
  <p>I tryed to use HTML 5 in order to draw the rectangles but I can't make it work properly once is included on the web resource.</p>
  
  <p>I'll paste here an excample that, if it's opened normally using IE, runs normally, but opened through a Web resource embeded into the form's header down't work and throws me an exception like : ' getContext(() functions is not defined'</p>
  
  <p>Here is the code</p>
  
  <pre><code>var c = document.getElementById("myCanvas");
  var ctx = c.getContext("2d");
  var xpos = -50;
  debugger;
  for (var ii = 0; ii &lt; 3; ii++) {
      xpos += 50;
      ctx.fillStyle = "#FF0000";
      ctx.fillRect(xpos, 1, 50, 50);
      ctx.fillStyle = "#000000";
      ctx.font = "10px Arial";
      ctx.fillText("Stage ", xpos+5, 25); 
  }
  </code></pre>
  
  <p>Question: Can I draw in crm using HTML 5 into a web resource????</p>
  
  <p>Thanks in advance!</p>