I am trying to save some data and fetch that data from the database.
I have all But I can not find the list here. Only the headers are visible.
What do I want my application to be?
Do not know why but the control of the ondive read () method Happening!
EDIT: Here is the code for my .js file
var database; Var dbCreated = false; Warning ("Hello1"); Var scrolls = new ISCOL ('wrapper', {vScrollbar: false, hScrollbar: false, hScroll: false}); Warning ("Hello2"); Document.addEventListener ("deviceready", onDeviceReady, incorrect); Warning ("Hello3"); Function OnDevice Readie () {Warning ("Hello 4"); Db = window.openDatabase ("Employee DirectoryDB", "1.0", "PhoneGap Demo", 200000); If (dbCreated) db.transaction (getemployees, transaction_error); Else db.transaction (populateDB, transaction_error, populateDB_success); } And here is my HTML code
& Lt; Link rel = "stylesheet" href = "css / styles.css" /> & Lt; Link rel = "stylesheet" href = "css / jquery.mobile-1.0rc1.min.css" /> & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "header" class = "header" & gt; & Lt; H1 & gt; Employee Directory & lt; / H1> & 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 = "employee list" class = "icon-list" & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; Div id = "busy" /> Loading ... & lt; / Div & gt; & Lt; SCRIPT & gt; Warning ('Savings !!'); & 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 / employmenteedetails.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; Just getting a popup - Hello 1.
There is no popup after that !!
I have tried to use
And commenting on the Worl Scroll control is not being accessed in device ready method ....
Pls Help !!
You can either & lt; Script src = "js / iscroll.js" & gt; & Lt; / Script & gt; above the .js file you embed here, .. or var scroll = new iScroll ()
Comments
Post a Comment