Save array to local storage or database and get it
Hello.
Im bulding an app to get/save/show data from XML. I folowed tutorial http://docs.appery.io/tutorials/build...
and it works fine. The problem is i want to save current state/values in some sort of database or local storage so for example if i close the app or go to another page and come back the values will be there without invoking service.
I tried with local storage and it works with only string but i cant put array in it. What is the easiest way to put data from array to local storage or database and access it . XML I use is like this:
code
<postaja>
<spot>
<postaja>Portorož (09:30)</postaja>
<veter>E 8.1 KT</veter>
<sunki>sunki: 14.6 KT</sunki>
<max>max: 14.6 KT</max>
</spot>
<spot>
<postaja>Seča (10:04)</postaja>
<veter>ENE 18.4 KT</veter>
<sunki>sunki: 0.0 KT</sunki>
<max>max: 25.4 KT</max>
</spot>
</postaja>
/code
Keep in mind i have no previous javascript knowlege.