to work in browser&ripple must be above - but no work in emulator or real device
- <link href="../jquery.mobile-1.2.1/jquery.mobile-1.2.1.min.css" rel="stylesheet" type="text/css">
- <script src="../jquery.mobile-1.2.1/jquery-1.8.3.min.js" type="text/javascript"></script>
- <script type="text/javascript" src="js/trnotes.js"></script>
- <script src="../jquery.mobile-1.2.1/jquery.mobile-1.2.1.min.js" type="text/javascript"></script>
Travel Notes record script:
to work in browser&ripple must be above - but no work in emulator or real device. if i have below work in emulator or real device(and also browser and ripple) the layout but database web sql not created...so script no work. in trnotes.js I have further below initial code... well where web sql code must be so function and layout too function?
may in an App have more than one database but other folder in App?
- <link href="../jquery.mobile-1.2.1/jquery.mobile-1.2.1.min.css" rel="stylesheet" type="text/css">
- <script src="../jquery.mobile-1.2.1/jquery-1.8.3.min.js" type="text/javascript"></script>
- <script src="../jquery.mobile-1.2.1/jquery.mobile-1.2.1.min.js" type="text/javascript"></script>
- <script type="text/javascript" src="js/trnotes.js"></script>
trnotes.js:
- // JavaScript Document
- $(document).on("mobileinit", function(){
- $.mobile.notesdb1 = openDatabase('trnotes', '1.0', 'Travel Notes', 2*1024*1024);
- $.mobile.notesdb1.transaction(function (t) {
- t.executeSql('CREATE TABLE IF NOT EXISTS notes (id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, title TEXT NOT NULL, details TEXT NOT NULL, entered TEXT NOT NULL, updated TEXT, latitude REAL, longitude REAL);');
- });
- });
- $(document).ready(function(e) {
-
- //$('#home').bind('pageshow', onMapLoad);
- $('#home').on('pagebeforeshow', getTitles);
- $('#new').on('pageshow', getLocation);
- $('#insert').on('submit', insertEntry);
- $('#editItem').on('click', editItem);
- $('#delete').on('click', deleteItem);
- $('#update').on('click', updateItem);
- $('#limit').on('click', swapList);
- });
- ........................
- ........................