View Full Version : Connect sqlite Database with JS

08-30-2011, 07:17 AM

Is it possible to connect to a sqlite database via javascript. And I do not mean the HTML 5 Web SQL Database, that is no problem. What I mean is a file-based SQLite database, which is in the same folder as the HTML page.Also, I can not use something like Google's API, only the javascript libraries I can then put in this folder.


08-30-2011, 10:59 AM
There's no built in way as far as I know, but you could get hold of the files with javascript using XmlHttpRequests. Then it would just be a case of parsing them. Writing to the DB would be impossible of course; you'd need some serverside code for that, but by the sound of it that's not possible for you is it?