Note that there are some explanatory texts on larger screens.

plurals
  1. POphonegap Storage in iPhone
    text
    copied!<p>I am trying to save some data and fetching that data from Database.</p> <p>I have done all from <a href="http://coenraets.org/blog/2011/10/sample-app-using-the-phonegap-database-api/#comment-92635" rel="nofollow noreferrer">Here</a>. But I am not getting list view here. just header are getting appears.</p> <p>What I want my application to be is</p> <p><img src="https://i.stack.imgur.com/IWqNL.png" alt="enter image description here"> and what I am getting is this !<img src="https://i.stack.imgur.com/vcUWa.png" alt="enter image description here"></p> <p>Don't know why but the control is not going in OnDeviceReady() method !!</p> <p>EDIT : Here is the code of my .js file </p> <pre><code>var db; var dbCreated = false; alert("Hello 1 " ); var scroll = new iScroll('wrapper', { vScrollbar: false, hScrollbar:false, hScroll: false }); alert("Hello 2" ); document.addEventListener("deviceready", onDeviceReady, false); alert("Hello 3" ); function onDeviceReady() { alert("Hello 4" ); db = window.openDatabase("EmployeeDirectoryDB", "1.0", "PhoneGap Demo", 200000); if (dbCreated) db.transaction(getEmployees, transaction_error); else db.transaction(populateDB, transaction_error, populateDB_success); } </code></pre> <p>and here is my html code </p> <pre><code> &lt;!DOCTYPE HTML&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Employee Directory&lt;/title&gt; &lt;meta name="viewport" content="width=device-width,initial-scale=1"/&gt; &lt;link rel="stylesheet" href="css/styles.css" /&gt; &lt;link rel="stylesheet" href="css/jquery.mobile-1.0rc1.min.css" /&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="header" class="header"&gt; &lt;h1&gt;Employee Directory&lt;/h1&gt; &lt;/div&gt; &lt;div id="header2"&gt; &lt;h2&gt;Employee List&lt;/h2&gt; &lt;/div&gt; &lt;div id="wrapper"&gt; &lt;ul id="employeeList" class="icon-list"&gt;&lt;/ul&gt; &lt;/div&gt; &lt;div id="busy"/&gt;Loading...&lt;/div&gt; &lt;SCRIPT &gt; alert('Saving !!'); &lt;/script&gt; &lt;script src="js/jquery.js"&gt;&lt;/script&gt; &lt;script src="js/jquery.mobile-1.0rc1.min.js"&gt;&lt;/script&gt; &lt;script src="js/employeelist.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"&gt; &lt;/script&gt; &lt;script src="js/phonegap.js"&gt;&lt;/script&gt; &lt;script src="js/employeedetails.js"&gt;&lt;/script&gt; &lt;script src="js/reportlist.js"&gt;&lt;/script&gt; &lt;script src="js/iscroll.js"&gt;&lt;/script&gt; &lt;!-- &lt;script src="js/phonegap.js"&gt;&lt;/script&gt; &lt;script src="js/jquery.js"&gt;&lt;/script&gt; &lt;script src="js/iscroll.js"&gt;&lt;/script&gt; &lt;script src="js/employeelist.js"&gt;&lt;/script&gt; --&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>M getting just one popup - Hello 1.</p> <p>After that no popup appears !!</p> <p>I have tried using </p> <pre><code> &lt;script src="js/iscroll.js"&gt;&lt;/script&gt; </code></pre> <p>and also on commenting the var scroll control is not entering to th Device ready method ....</p> <p>Pls Help !!</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