SHARE
TWEET

jquery code

a guest Mar 22nd, 2012 278 Never
  1. $("#mypage").live("pagebeforeshow", function (){
  2.       db.transaction(function(tx){
  3.           tx.executeSql('SELECT * FROM TABLEX WHERE column_x = ?', [?], function (tx, rs){
  4.              // do whatever we want with the result of statement
  5.              // append results to my dom element                       
  6.           });
  7.       });
  8. });
RAW Paste Data
Top