<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Errore 'this.canvas is null']]></title><description><![CDATA[<p dir="auto">Ciao, scusate ma non esperto, anzi direo proprio neofita.</p>
<p dir="auto">Cosa c'è che non va in questo codice? Mi sa che è onload nel body.....</p>
<p dir="auto">Testato qui funziona: <a href="http://jsfiddle.net/genehackman/ygrWh/8/" rel="nofollow ugc">jsfiddle.net/genehackman/ygrWh/8/</a></p>
<p dir="auto">Grazie ciao</p>
<pre><code class="language-html"> &lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;gauge.js&lt;/title&gt;
  &lt;script type="text/javascript" src="hxxp://bernii.github.io/gauge.js/dist/gauge.js"&gt;&lt;/script&gt;  

    &lt;script type="text/javascript"&gt;
  var gaugeOneTarget = document.getElementById('gaugeOne');
var gaugeOne = new Donut(gaugeOneTarget);

gaugeOne.setOptions({
    lines: 12,
    angle: 0.07,
    lineWidth: 0.10,
    colorStart: '#6F6EA0',
    colorStop: '#C0C0DB',
    strokeColor: '#e0e0e0'
});

gaugeOne.maxValue = 100;
gaugeOne.set(85);

&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;canvas id="gaugeOne" width="200" height="120"&gt;&lt;/canvas&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p dir="auto">Errore</p>
<pre><code class="language-html"> TypeError: 'null' is not an object (evaluating 'this.canvas.getContext')
</code></pre>
]]></description><link>https://dev.connect.gt/topic/189598/errore-this-canvas-is-null</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 07:08:54 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/189598.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 May 2013 17:04:28 GMT</pubDate><ttl>60</ttl></channel></rss>