Page 1 of 2

Localstorage variable: undefined

Posted: Thu Feb 26, 2015 6:24 pm
by Christian7402253

please help me, I'm using the localstorage variable to hold value but it doesn't get updated.


Localstorage variable: undefined

Posted: Thu Feb 26, 2015 6:34 pm
by Evgene Karachevtsev

Hello Christian,

Could you please share print screen of your mapping?


Localstorage variable: undefined

Posted: Thu Feb 26, 2015 6:40 pm
by Christian7402253

Image

here you go


Localstorage variable: undefined

Posted: Thu Feb 26, 2015 6:40 pm
by Christian7402253

and that's not all, my localstorage doesn't update as it should :(


Localstorage variable: undefined

Posted: Thu Feb 26, 2015 6:48 pm
by Christian7402253

My app Goes like this, I select an event and enter a code Image
If the code is right, it will transfer me to the next page
Image
My problem is:

  1. the leave button is not working, its set to navigate to the first screen.
  2. My app gets the previous value of my localstorage variable. not the updated one :(

Localstorage variable: undefined

Posted: Thu Feb 26, 2015 9:24 pm
by Evgene Karachevtsev

Christian,

I don't see how your local storage is using in mapping. Do you use it in any JS code? Please show print screen with that code, if you use


Localstorage variable: undefined

Posted: Sat Feb 28, 2015 11:59 am
by Christian7402253

Not really. I've read some articles about a browser not able to fire the data instantly when you replace the value of the key.. its described here
a href="http:/eintohtml5.info/storage.html" rel="nofollow"http:/eintohtml5.info/storage.html/a
The part "TRACKING CHANGES TO THE HTML5 STORAGE AREA"
I don't know where to put and how to use the code.. can you tell me where?


Localstorage variable: undefined

Posted: Sat Feb 28, 2015 12:09 pm
by Christian7402253

http://stackoverflow.com/questions/27...
This article may also prove useful.


Localstorage variable: undefined

Posted: Sat Feb 28, 2015 12:54 pm
by Illya Stepanov

Hi Christian -

Show us how you are updating your localStorage variables in your app at this point?

You can use as well our Storage API which is an a HTML5 localStorage in our wrapper.


Localstorage variable: undefined

Posted: Sat Feb 28, 2015 5:01 pm
by Christian7402253

Hi Illya
Well, now I can't set the label text from my local storage variable. It doesn't appear :( . I looked at the Storage API you linked, is that different from the Local storage variable?