What I’m trying to do is access an SQLite database, which is on a server, from Google Chrome, using JavaScript and HTML.
I’ve seen Google Gears, but it says it’s deprecated because of HTML5. I’d like to avoid server-side programs, the only application doing work should be the browser. Is it possible?
If you are 100% sure that you need the data on server only (which is how most of the applications are built), then what you need is a 3-tier architecture – the client, the server and the database. First of all, stop trying to access the database from your web-page. Instead, write a server-side routine/function in your language of choice to access/manipulate the data. Now your problem reduces to invoking the server-side function from your web-page which can be done using a simple HTTP submission and a mechanism on the server-end to listen to that HTTP request, call the function and then send a response. If you are in the Java world, then Servlets can do this for you. There are similar solutions on most other platforms as well – Ruby, PHP, Perl, C#.