Link to home
Start Free TrialLog in
Avatar of Randy Johnson
Randy JohnsonFlag for United States of America

asked on

javascript autocomplete using local database in chrome

I have created a local database in the chrome internet browser.   I am having trouble finding a way to get an autocomplete working with a local database.  A couple examples I found connect to a remote datasource or take an array of data.

Any pointers or links to get me rolling?
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

A browser cannot directly interact with a database.  You either have to go through a server connected to the database or load the data into an internal array.  How you proceed depends on how much data you need to access for the function to work.


Cd&
Avatar of Randy Johnson

ASKER

Maybe I should have clarified:

http://www.w3.org/TR/webdatabase/

I created a database and I can see it in the resources tab in the Chrome Browser.

It is an SQLite db
The document you posted is a partial implementation of an API that is no longer being worked on since Nov 2010, because there is an impasse on how to implement it.  In other words there are no standards in this area, and in the absence of standards, the only ones who might have an answer as to how their implementation works are Google who manufacture Chrome.


Cd&
ok bad example, but there are plenty of tutorials out there about it. The point I was trying to make is it is possible to connect to a database in a browser.  Also from what I have read it is available to Safari as well probably to any browser that uses webkit.  If it is not really a standard that explains the lack of good examples on how to do what I am trying to accomplish.
Are you just looking to do local access on your own computer, ot is this something for an app that is going to be deployed across the web?


Cd&
This is for a browser app to be deployed on an ipad with spotty internet access at times.  That is the reason I want to use local storage as much as possible.  In my example it will be the parts catalog
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial