Note that there are some explanatory texts on larger screens.

plurals
  1. POWebSql on Blackberry- phonegap
    text
    copied!<p>I'm new to Blackberry. I use phonegap to create cross platform applications. I'm trying websql on blackberry using phonegap. My html file looks like this:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt; &lt;script type="text/javascript" charset="utf-8"&gt; var db= openDatabase('mydb', '1.0', 'Test DB', 2 * 1024 * 1024); var msg; db.transaction(function (tx) { tx.executeSql('CREATE TABLE IF NOT EXISTS COMPANY (id unique, log)'); tx.executeSql('INSERT INTO COMPANY (id, log) VALUES (1, "Unisys")'); tx.executeSql('INSERT INTO COMPANY (id, log) VALUES (2, "UGSI")'); tx.executeSql('INSERT INTO COMPANY (id, log) VALUES (3, "TCIS")'); tx.executeSql('INSERT INTO COMPANY (id, log) VALUES (4, "mobcomp")'); msg = '&lt;p&gt;Log message created and row inserted.&lt;/p&gt;'; document.querySelector('#status').innerHTML = msg; }); db.transaction(function (tx) { tx.executeSql('SELECT * FROM COMPANY', [], function (tx, results) { var len = results.rows.length, i; msg = "&lt;p&gt;Found rows: " + len + "&lt;/p&gt;"; document.querySelector('#status').innerHTML += msg; for (i = 0; i &lt; len; i++){ msg = "&lt;p&gt;&lt;b&gt;" + results.rows.item(i).log + "&lt;/b&gt;&lt;/p&gt;"; document.querySelector('#status').innerHTML += msg; } }, null); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="status" name="status"&gt;Status Message&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>This code is working fine with ANDROID. But on Blackberry the simulator is not displaying anything except the status message line. Can anyone please help me on this issue?</p> <p>Thanks in advance, Akshatha</p>
 

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