Note that there are some explanatory texts on larger screens.

plurals
  1. PODygraph code crashes on IE8
    primarykey
    data
    text
    <p>My dygraph code does not work on IE8. The Console shows this error:</p> <pre><code>SCRIPT5009: 'CanvasRenderingContext2D' is undefined dygraph-combined.js, line 2 character 13300 </code></pre> <p>This is the line that crashes in "dygraph-combined.js":</p> <pre><code>CanvasRenderingContext2D.prototype.installPattern=function(e){if ... </code></pre> <p>The graph is correctly displayed on IE9 and IE7, using the exact same code.</p> <p>None of the possible solutions that I have researched have worked yet (many of them being just "include excanvas.js").</p> <p><strong>Edit1:</strong> after David Kiger's feedback, I have tried formatting the header exactly as required, but it still does not work. I have also removed Yii's bootstrap to isolate the problem. This is the exact code:</p> <pre><code>&lt;!-- DOCTYPE html --&gt; &lt;HTML&gt;&lt;HEAD&gt; &lt;META content="IE=EmulateIE7; IE=EmulateIE9;" http-equiv=X-UA-Compatible&gt; &lt;META content="text/html; charset=utf-8" http-equiv=Content-Type&gt; &lt;SCRIPT type=text/javascript src="/js/dygraph/excanvas.js"&gt;&lt;/SCRIPT&gt; &lt;SCRIPT type=text/javascript src="/fonto/js/dygraph/dygraph-combined.js"&gt;&lt;/SCRIPT&gt; &lt;/HEAD&gt; </code></pre> <p>Commenting this line in excanvas.js did not work either:</p> <pre><code>//el.style.overflow = 'hidden'; </code></pre> <p><strong>Edit2:</strong> SOLVED! </p> <p>So I had to combine both solutions:</p> <p>Format code for IE...</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9;"&gt; </code></pre> <p>...AND commenting the line in excanvas.js</p> <pre><code>//el.style.overflow = 'hidden'; </code></pre> <p>The order is also very important:</p> <ul> <li><p>First excanvas.js</p></li> <li><p>Then dygraph-combined.js</p></li> </ul> <p>Thank you so much for your feedback.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload