AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.
Hi I am trying to get data from Excel to json object using alasql
The code is as fallows
loadFile = function(event) {
alert("select from excel");
alasql('SELECT * FROM XLSX(?,{headers:true})',[event],function(data){
alert("hkjhgskh");
print(data)
});
The controll is going to that function after choosing the file but it showing the fallowing error.
xlsx.core.min.js:13 Uncaught TypeError: f.charCodeAt is not a function
at firstbyte (xlsx.core.min.js:13)
at Object.readSync [as read] (xlsx.core.min.js:13)
at alasql.min.js:2
at FileReader.i.onload (alasql.min.js:10)
Hi I am trying to get data from Excel to json object using alasql
The code is as fallows loadFile = function(event) { alert("select from excel"); alasql('SELECT * FROM XLSX(?,{headers:true})',[event],function(data){ alert("hkjhgskh"); print(data) }); The controll is going to that function after choosing the file but it showing the fallowing error.
xlsx.core.min.js:13 Uncaught TypeError: f.charCodeAt is not a function at firstbyte (xlsx.core.min.js:13) at Object.readSync [as read] (xlsx.core.min.js:13) at alasql.min.js:2 at FileReader.i.onload (alasql.min.js:10)
Plese help me .