Note that there are some explanatory texts on larger screens.

plurals
  1. POHTML scripting not loading javascript file
    primarykey
    data
    text
    <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 "devicepiechart.js" is loading from the html.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt; &lt;link rel="stylesheet" type="text/css" href="jquery.jqplot.css" /&gt; &lt;script&gt; function load() { alert("I am an loading scripts!"); } &lt;/script&gt; &lt;script src="devicepiechart.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body onload= "load()"&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>The load() function alert is shown properly without any problem. I could detect that my .js file is not loading as I have the alert("string"); function in my .js file too for debugging.</p> <p>UPDATED devicepiechart.js, and I hope the external .js 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">http://www.jqplot.com/tests/pie-donut-charts.php</a></p> <pre><code>$(document).ready(function() { alert("good"); 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>
    singulars
    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.
 

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