hassan nadar
Posts: 0
Joined: Tue Jan 21, 2014 10:41 am

Set storage variable problem

dear , i have mobilelist with different items filled from rest api, i add event Set storage variable on click , but not getting value , yesterday was working with me, plz help

Matt6607699
Posts: 0
Joined: Sat Jan 25, 2014 7:18 am

Set storage variable problem

I am also have storage variable problems. I have code that used to work but now doesn't.

I set local storage var"local_logged_in" with a string "logged_FB".

in custom JS use:

var loggedStatus = localStorage.getItem("local_logged_in");

alert(loggedStatus); //alerts "logged_FB"

if(loggedStatus==="logged_FB"){
}else{
alert("not a match");
}

The result of the if statement is always false. The alert above it alert shows it's true.

I have multiple scenerios like this with different values and they are all acting this way.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Set storage variable problem

Hi Hassan,

Please verify these points:

  • It worked before 05/25/2014?
  • Are you trying to read the value from the mobile list component?
  • And what code you are using on this event?
hassan nadar
Posts: 0
Joined: Tue Jan 21, 2014 10:41 am

Set storage variable problem

dear ,
-yes it was working before 05/25/2014
-i did exactly as mentioned in tutorial (Building a clickable list app with HTML5 local storage)

  • i add event to mobilelistitem , onclick , set storage variable

    the list displayed correctly , but when i click on item it set wrong value for storage variable , for me i use label same as in tutorial.

    the problem is storage variable take the initial value of the label text ,
    i print the storage variable in alert box , it show me ( Label ) , this is the initial text value of label

    Regards

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Set storage variable problem

Dear All,

We are going to roll back recent update.

http://blog.appery.io/2014/05/importa...

Let's check this after it.

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

Set storage variable problem

Hello!

We are up and running after roll back. Are there any issues in your project?

Matt6607699
Posts: 0
Joined: Sat Jan 25, 2014 7:18 am

Set storage variable problem

Hi, it looks like my storage variables are working now

hassan nadar
Posts: 0
Joined: Tue Jan 21, 2014 10:41 am

Set storage variable problem

yes , everything is working well as it was
thx

Return to “Issues”