03-02-2011 11:30 AM
Hi, I have an application with some pages. I add the code to create the tables in one of pages and I do all the "CREATE TABLE..." but when I change to another pages I think that I lost all data, isn't it? How can I save and load the database that I have created in first page? some sample?
Thanks, Oscar
Solved! Go to Solution.
03-02-2011 09:34 PM
Hi Oscar,
Is the second page you are loading in the same domain/origin as the first page?
03-03-2011 03:08 AM
what do you mean with domain/origin? the .js script?
03-03-2011 04:18 AM
have you tried using
"CREATE TABLE IF NOT EXISTS <table name> (column, column column)"
03-06-2011 04:00 PM
but, I don't want loss all changes make it in last screens. How can I save this changes in database sqllite do it in last screens?
Thanks,
03-06-2011 09:11 PM
From my knowledge, data in the sqllite database is stored until the application is uninstalled. You can access it from any page within the same application.
If you need help with sqllite, check the solution of the following thread: