Page 1 of 1

Set storage variable problem

Posted: Mon May 26, 2014 9:29 pm
by hassan nadar

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


Set storage variable problem

Posted: Mon May 26, 2014 9:44 pm
by Matt6607699

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.


Set storage variable problem

Posted: Mon May 26, 2014 9:46 pm
by Illya Stepanov

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?

Set storage variable problem

Posted: Mon May 26, 2014 10:08 pm
by hassan nadar

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


Set storage variable problem

Posted: Mon May 26, 2014 11:41 pm
by Illya Stepanov

Dear All,

We are going to roll back recent update.

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

Let's check this after it.


Set storage variable problem

Posted: Tue May 27, 2014 7:32 am
by Maryna Brodina

Hello!

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


Set storage variable problem

Posted: Tue May 27, 2014 3:30 pm
by Matt6607699

Hi, it looks like my storage variables are working now


Set storage variable problem

Posted: Wed May 28, 2014 5:49 am
by hassan nadar

yes , everything is working well as it was
thx