Im trying to view database on my web app. The problem here is that it does not view from SQLite. rather view database from chrome add-ons. Is there any way for me to view SQlite databse using Jscript?
-
Are you referring to the Web SQL Database API? That has been abandoned, and isn't well supported anyway.Snowball– Snowball2012年08月28日 15:50:09 +00:00Commented Aug 28, 2012 at 15:50
1 Answer 1
There is no way to directly access an arbitrary SQLite database via client side JavaScript running in a web browser.
If your database exists on a webserver, then you can write an HTTP based API (ideally one that is RESTful) and interact with it via the XMLHttpRequest object.
answered Aug 28, 2012 at 15:45
Quentin
949k137 gold badges1.3k silver badges1.4k bronze badges
Sign up to request clarification or add additional context in comments.
2 Comments
user1629618
hello there. thank you for replying. just another question. do you need a server when you run php script?
Quentin
In the context on the WWW: yes. You can also write standalone programs (that don't involve a web browser) in PHP ... although it would be far from my first choice.
lang-js