title: HTML scripting not loading JavaScript file
body: <p>I'm trying to display piechart in UIWebview of my iOS xcode project, for that I'm using jqplot with HTML, CSS and JavaScript, the issue I face is JavaScript file &quot;devicepiechart.js&quot; is loading from the html.</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
      &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;
          &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;jquery.jqplot.css&quot; /&gt;
  &lt;script&gt;
              function load()
              {
                  alert(&quot;I am an loading scripts!&quot;);
              }
          &lt;/script&gt;
  
  &lt;script src=&quot;devicepiechart.js&quot;&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload= &quot;load()&quot;&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>The <code>load()</code> function alert is shown properly without any problem. I could detect that my <code>.js</code> file is not loading as I have the <code>alert(&quot;string&quot;);</code> function in my <code>.js</code> file too for debugging.</p>
  <p>UPDATED devicepiechart.js, and I hope the external <code>.js</code> file may not have any error, because I have the source from this <a href="http://www.jqplot.com/tests/pie-donut-charts.php" rel="nofollow noreferrer">http://www.jqplot.com/tests/pie-donut-charts.php</a></p>
  <pre><code>$(document).ready(function()
        {
                alert(&quot;good&quot;);
                var data = [
                            ['Heavy Industry', 12],['Retail', 9], ['Light Industry', 14],
                            ['Out of home', 16],['Commuting', 7], ['Orientation', 9]
                            ];
                var plot1 = jQuery.jqplot ('chart1', [data],
                                           {
                                           seriesDefaults: {
                                           // Make this a pie chart.
                                           renderer: jQuery.jqplot.PieRenderer,
                                           rendererOptions: {
                                           // Put data labels on the pie slices.
                                           // By default, labels show the percentage of the slice.
                                           showDataLabels: true
                                           }
                                           }, 
                                           legend: { show:true, location: 'e' }
                                           }
                                           );
                });
  </code></pre>