samedi 2 avril 2016

Querying data from sqlite database results filename?

I have created an express app for my server side and I am using sqlite database. I am trying to display the data on the client side but rather than the data get displayed, it is displaying the file name.

Here is my code

$(document).ready(function(){
   $("button").click(function(){
       $.ajax({url: "/data", success: function(result){
           $("#div1").html(result);
           console.log(result);
       }});
   });

});

I am getting this, instead of JSON

Object {open: false, filename: "Test.sqlite.sqlite", mode: 65542}

Any suggestions??

Aucun commentaire:

Enregistrer un commentaire