Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

jquery code

By: a guest on Mar 22nd, 2012  |  syntax: jQuery  |  size: 0.32 KB  |  views: 231  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. });