HTML Local Database -- Getting the data with Javascript

alexfort93

[H]ard|Gawd
Joined
Feb 21, 2008
Messages
1,855
I've recently just created a local database using Javascript and have begun to populate it with information. Now, I want to use the local database to call some data to confirm that is has worked, but I am unsure on how to do so.

Code:
EPIDB.transaction(
	function (transaction) {
		transaction.executeSql("SELECT * FROM Tablename;", [], dataSelectHandler, errorHandler);
		}
	);

I think this should work, but then I need some way of getting onto the page. Does anyone have any idea how I can get it to display the data on my html page?
 
Looks like you're populating an (anonymous?) object with the results from the query. You still have to enumerate that object and pull values from it.

Also, what database product is that? If that product is running as a service/daemon, then is someone else maintaining or working with that DB?
 
Back
Top