title: Storing JSON data in WebSQL server
body: <p>I'm trying to load my JSON data into a webSQL server using .getJSON() and .each to itterate through the records in my database.</p>
  
  <pre><code>function createDB(){
  var db = openDatabase('Json', '1.0', 'local version of Json db', 2 * 1024 * 1024);
  db.transaction(function (tx) {
  tx.executeSql('CREATE TABLE categorie (categorie_id INTEGER, cat_naam TEXT)');
      $.getJSON("http://localhost:8080/Json/welcome/categorie", function(data){
          $.each(data, function(index) {
              console.log(data[index].categorie_id);
              tx.executeSql('INSERT INTO categorie (categorie_id, cat_naam) VALUES (?,?)', [data[index].categorie_id, data[index].cat_naam]);
          });
      });
  });
  </code></pre>
  
  <p>}</p>
  
  <p>But after the id gets writen into the log the javascripts stops running.</p>
  
  <p>I have no idea what I'm doing wrong, according to some documentation and tutorials I've read I should be doing the syntax allright, but maybe it has something to do with the fact that I'm using those 2 functions(.getJson and .each) in conjunction with the transactions.</p>
  
  <p>Also this application is inside of an Intel XDK project using AppFramwork and Cordova.</p>