Page 3 of 4

saving an array in localstorage

Posted: Wed Nov 21, 2012 4:42 pm
by Maryna Brodina

Ok, got it. Maybe this is the problem, I tested with the flash-based builder. I'll test in new one and update.


saving an array in localstorage

Posted: Wed Nov 21, 2012 6:26 pm
by Michael4771079

Hi Marina,

I got it working in old builder, however the selectmenu list builds for new entries but once closed the items are not stored for further use, and list reverts to vini,vidi,vici, I need to retain them and add to them when required

thanks for all your help


saving an array in localstorage

Posted: Thu Nov 22, 2012 3:36 pm
by Maryna Brodina

I tested in new builder - looks like a bug. We'll fix it


saving an array in localstorage

Posted: Mon Nov 26, 2012 10:48 am
by Michael4771079

Hi Marina,

I can use old builder for now, I notice with your example and mine the script we used saves the array, but once page is closed the list reverts to the default vini,vidi,vici, and the array is empty. What can I add to solve this.


saving an array in localstorage

Posted: Mon Nov 26, 2012 1:52 pm
by Maryna Brodina

Hi! Delete

codelocalStorage.setItem('variable_name', null);/code


saving an array in localstorage

Posted: Mon Nov 26, 2012 2:16 pm
by Michael4771079

thanks worked great as always Marina,
please let me know when it fixed in new builder,

also I notice some people talking about localstorage not working on iphone, can tiggzi please make a comment on this, because if this is true and Tiggzi dont have a solution the cross platform builder will not be very useful, even a todo list would not be possible

thanks again


saving an array in localstorage

Posted: Mon Nov 26, 2012 2:28 pm
by Maryna Brodina

I'll update when it will be fixed in new builder

Here is the post about local storage

http://community.phonegap.com/nitobi/...

http://docs.phonegap.com/en/2.0.0/cor...


saving an array in localstorage

Posted: Mon Nov 26, 2012 5:27 pm
by Michael4771079

Cheers Marina,
so am I right in assuming we are trying to us the code example under "local storage" from this link http://docs.phonegap.com/en/2.0.0/cor...

and if used localstorage will work from tiggzi builder,
and if so can we have a tutorial


saving an array in localstorage

Posted: Tue Nov 27, 2012 11:16 am
by Kateryna Grynko

Hello! Yes, exactly, it's localStorage from the tutorial.


saving an array in localstorage

Posted: Tue Nov 27, 2012 11:22 am
by Kateryna Grynko

Local storage variables from Tiggzi buider are stored in localStorage.
There is a small tutorial
http://help.gotiggr.com/documentation...