<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi Paul, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/A-problem-with-canvas/m-p/1052090#M50443</link>
    <description>&lt;P&gt;Hi Paul,&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;

&lt;P&gt;I added the vars and removed the .innerHTML and no longer get the error. I've tried adding some code from the link you sent me and that works but I still can't get the width of the canvas which shows up as undefined. I'll continue to go through the tutorial and hopefully I'll find what I'm doing wrong.&lt;/P&gt;

&lt;P&gt;Have a great day.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2015 08:45:12 GMT</pubDate>
    <dc:creator>Anne_B_</dc:creator>
    <dc:date>2015-03-17T08:45:12Z</dc:date>
    <item>
      <title>A problem with canvas</title>
      <link>https://community.intel.com/t5/Software-Archive/A-problem-with-canvas/m-p/1052088#M50441</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I want to draw a timeline using the &amp;lt;canvas&amp;gt; element but I'm having problems getting a handle on it.&lt;/P&gt;

&lt;P&gt;Here is the canvas declared in the index.html file:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;lt;div id="uib_page_4" class="upage-content vertical-col hidden"&amp;gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div class="widget uib_w_93 d-margins eNevillizer" data-uib="media/text" data-ver="0"&amp;gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div class="widget-container left-receptacle"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div class="widget-container right-receptacle"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;canvas id= "dailycanvas" height="300" width="250"&amp;gt;&amp;lt;/canvas&amp;gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;

&lt;P&gt;(the size here is just for testing, ideally I would want to adjust this according to the size of the window although I'm not sure exactly how that can be done but I'm not there yet ;-))&lt;/P&gt;

&lt;P&gt;Here is the javascript to get the canvas object:&lt;/P&gt;

&lt;P&gt;canvas = document.getElementById("dailycanvas").innerHTML;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; //&amp;nbsp; (I've tried with and without ".innerHTML")&lt;BR /&gt;
	context = canvas.getContext("2d");&amp;nbsp;&lt;/P&gt;

&lt;P&gt;which throws the following error:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Uncaught TypeError: undefined is not a function &lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I'm using App Framework with appframework.js and appframework.ui.js. Do I need other libraries?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks in advance for any insights you may have on this&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2015 12:49:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/A-problem-with-canvas/m-p/1052088#M50441</guid>
      <dc:creator>Anne_B_</dc:creator>
      <dc:date>2015-03-15T12:49:12Z</dc:date>
    </item>
    <item>
      <title>Those lines should work</title>
      <link>https://community.intel.com/t5/Software-Archive/A-problem-with-canvas/m-p/1052089#M50442</link>
      <description>&lt;P&gt;Those lines should work (without the innerHTML bit), I recommend you add a "var" in front of them. See this tutorial from Mozilla: &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Basic_usage" target="_blank"&gt;https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Basic_usage&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2015 23:26:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/A-problem-with-canvas/m-p/1052089#M50442</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2015-03-16T23:26:44Z</dc:date>
    </item>
    <item>
      <title>Hi Paul,</title>
      <link>https://community.intel.com/t5/Software-Archive/A-problem-with-canvas/m-p/1052090#M50443</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;

&lt;P&gt;I added the vars and removed the .innerHTML and no longer get the error. I've tried adding some code from the link you sent me and that works but I still can't get the width of the canvas which shows up as undefined. I'll continue to go through the tutorial and hopefully I'll find what I'm doing wrong.&lt;/P&gt;

&lt;P&gt;Have a great day.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2015 08:45:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/A-problem-with-canvas/m-p/1052090#M50443</guid>
      <dc:creator>Anne_B_</dc:creator>
      <dc:date>2015-03-17T08:45:12Z</dc:date>
    </item>
  </channel>
</rss>

