Hi,
I'm pulling my hair out on this one... I'm a newb at javascript and am trying to create an html5 page, that when loaded, will pull the contents of an xml file into a spry dataset and populate the page (the easy bit which I have done).
What I am now trying to do, is to create an SQLite database that will cache the information from the dataset on load, then push the contents of that database back into the Spry, therefore the page will always work off content stored locally. This would allow the pages to continue to work, even when offline, and would allow the page(s) to also work as a web app for iPhone, Blackberry, Android etc.
So far, I've been following numerous tutorials, which only seem to cover some of this, or are based on Adobe AIR.
Can anyone suggest any tutorials, or shed some light on how I might achieve this.
So far, I have been able to create the local Database, create a table with 3 fields - id, first_name, last_name - but can't for the life of me, work out how to get the loaded contents of the spry dataset inserted into the database using the 'ds1.getData()' function.
I'm starting small on this just to get the hang of it, but I will need to use this on a massive scale in my project, so any help would be greatly appreciated.
Thanks
I'm pulling my hair out on this one... I'm a newb at javascript and am trying to create an html5 page, that when loaded, will pull the contents of an xml file into a spry dataset and populate the page (the easy bit which I have done).
What I am now trying to do, is to create an SQLite database that will cache the information from the dataset on load, then push the contents of that database back into the Spry, therefore the page will always work off content stored locally. This would allow the pages to continue to work, even when offline, and would allow the page(s) to also work as a web app for iPhone, Blackberry, Android etc.
So far, I've been following numerous tutorials, which only seem to cover some of this, or are based on Adobe AIR.
Can anyone suggest any tutorials, or shed some light on how I might achieve this.
So far, I have been able to create the local Database, create a table with 3 fields - id, first_name, last_name - but can't for the life of me, work out how to get the loaded contents of the spry dataset inserted into the database using the 'ds1.getData()' function.
I'm starting small on this just to get the hang of it, but I will need to use this on a massive scale in my project, so any help would be greatly appreciated.
Thanks