Note that there are some explanatory texts on larger screens.

plurals
  1. POUncaught Syntaxterror: Unexpected token ILLEGAL at file Error in PhoneGap
    primarykey
    data
    text
    <p>I'm working on a Phonegap project. When I try it on the browser and Android emulator it works but when I try on the Android telephone it doesn't work. Here is the my code that doesn't work on the telephone. </p> <pre><code>function sta_graph() { var selectedGraph = document.getElementById ( "sta_statistic" ).value; var url = "http://"+serverIP+"/prtCar11/php/Stations.php/" + selectedStation + "/" + selectedGraph; if(selectedGraph != "") { var graphObject; var xAx; var yAx; var xmlhttp; xmlhttp=new XMLHttpRequest(); xmlhttp.open('GET',url,false); xmlhttp.send(); var json = xmlhttp.responseText; obj = JSON.parse(json); graphObject = obj.data; xAx = obj.xAxis; yAx = obj.yAxis; drawGraph('#sta_flot', xAx, yAx, graphObject); } } </code></pre> <p>And here is the Error that Eclipse LogCat gives. Thank you for your helps.</p> <pre><code>05-12 22:18:31.049: E/Web Console(18630): Uncaught SyntaxError: Unexpected token ILLEGAL at file:///android_asset/www/index.html#statistics:1 05-12 22:18:38.219: I/Web Console(18630): exception firing pause event from native at null:1 </code></pre> <p>Here is my statistics page:</p> <pre><code> &lt;div data-role="page" class="section" id="statistics"&gt; &lt;div class="header" data-role="header"&gt; &lt;a href="#stationpage" data-role="button" data-rel="back" data-icon="arrow-l" data-theme="c"&gt;Back&lt;/a&gt; &lt;h1&gt;PRT Yönetim Paneli&lt;/h1&gt; &lt;/div&gt; &lt;div class="content" data-role="content" id="content5"&gt; &lt;select class="span12" id="sta_statistic" onchange="sta_graph();" &gt; &lt;option value=""&gt;Bir grafik seçiniz.&lt;/option&gt; &lt;option value="numberOfPassenger"&gt;Yolcu Sayısı/Zaman&lt;/option&gt; &lt;/select&gt; &lt;div id="sta_flot" style="width: 300px; height: 250px;"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="footer" data-role="footer"&gt; &lt;/div&gt; &lt;/div&gt; </code></pre>
    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.
 

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