javascript - WebSQL update isn't working -


today helping friend solution , in runtime update in pc works , in pc doesn't . we've checked databases , okay, tried upload code raspberry pi , doesn't work. we've tried debug code, , went straight callback function (it didn't gave error). databese based in websql , code one:

$('#save').click(function(){       var db=opendatabase('ats_db2', '1.0', 'base de dados ats', 2*2048*2048);       db.transaction(function (tx){         var nome =$('#alteranome').val();         var bi =$('#alterabi').val();         var nif =$('#alteranif').val();         var morada=$('#alteramorada').val();         var contatos = $('#alteracontatos').val();         var id = $('#id_cliente').val();       tx.executesql('update cliente set nome=? ,bi=? ,nif=? ,morada=? ,contatos=?  id_cliente = ?;',[nome,bi,nif,morada,contatos,id],function(tx,results){         alert("cliente alterado com sucesso");         //location.reload();       },errorhandler); });     }); errorhandler = function (transaction, error) {   // returns true rollback transaction   debugger;   alert("error processing sql: "+ error);   return true;  } 

can know happening? ty ;)


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -