Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

saving an array in localstorage

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

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

saving an array in localstorage

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

saving an array in localstorage

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

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

saving an array in localstorage

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

saving an array in localstorage

Hi! Delete

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

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

saving an array in localstorage

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

saving an array in localstorage

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...

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

saving an array in localstorage

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

saving an array in localstorage

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

saving an array in localstorage

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

Return to “Issues”