Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Like Tree2Likes
  • 1 Post By ferengi
  • 1 Post By gusblake

Thread: Connect sqlite Database with JS

  1. #1
    New to the CF scene
    Join Date
    Aug 2011
    Thanked 0 Times in 0 Posts

    Connect sqlite Database with JS


    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.

    wang2014 likes this.

  • #2
    Regular Coder
    Join Date
    Jan 2006
    Thanked 84 Times in 84 Posts
    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?
    wang2014 likes this.


    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts