javascript - Try to create HTML5 table in WebOS but failed -


i try create html5 table in webos using following javascript, table not created. can't see further detail in log other first mojo.log "try create database".

2011-01-25t15:48:50.251507z [43854] qemux86 user.notice lunasysmgr: {lunasysmgrjs}: com.palm.phonegap: info: try create database, palminitframework347:2527

do have idea?

thanks..

    var db;      function opendb(){       var shortname = 'mcrm';       var version = '1.0';       var displayname = 'mcrm'       var maxsize = 65536;       db = opendatabase(shortname, version, displayname, maxsize);        try {             db.transaction(           function(transaction) {             mojo.log.info("try create database");                   transaction.executesql(               'create table if not exists bookmarks'                + ' (id integer not null primary key autoincrement, '               + ' resource_id integer not null '               + ' resource_type text not null '               + ' url text not null );',             function() {               mojo.log.info("database created");                  },             errorhandler             );           }       );       mojo.log.info("is no error?");      }   function errorhandler(transaction, error) {   mojo.log.info("ooopss. error ", error.message , " ;error code:", error.code);   return true; } 

  1. the cause of log file not giving err message i.e. missing 1 argument of executesql
  2. the cause of error i.e. missing comma @ create table statement

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -