0

I would like to interact (select, insert, update, delete) with a SQLite database that is on my server using Javascript running on a remote browser.

1
  • You could use AJAX to communicate with a backend that could then interact with a database. Commented Feb 12, 2014 at 0:04

1 Answer 1

2

No. Not directly.

The remote server would need to expose a "Web API" - which could be used/consumed by the browser JavaScript - that is run on the system with direct access to the SQLite database.

There are some existing proxies that "allow direct data access" - you'll need to find or craft a suitable tool. I recommend writing a Web API that doesn't expose SQL directly, but rather exposes the required operations independent of the actual back-end.

Sign up to request clarification or add additional context in comments.

1 Comment

I am trying to do the same but my HTML is in SCORM package and I want to collect some interaction details from learners. As my main intention is to do everything within a package which will on server but we can not use any server side script like PHP, JSP and ASP. Is it possible to do this with server side JavaScript if so then please provide some help links.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.