Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 13th, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 13  |  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. How to send an HTML5 sqlite result set to a server via AJAX
  2. db.transaction(
  3.     function(transaction) { transaction.executeSql(
  4.     'SELECT col1, col2, col3 FROM table;',
  5.      [],function(transaction, result){
  6.  
  7.      //package the result in here somehow to send to the server via AJAX
  8.  
  9. },errorHandler);
  10.        
  11. JSON.stringify(result);