Austin
Posts: 0
Joined: Thu Apr 25, 2013 1:10 am

Remembering variables.

I'm wondering how to use the same variable on multiple buttons. It seems like I have to add jquery on each button. I would like buttons to remember what other buttons did. Or should I use the backend to do this, Thanks

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Remembering variables.

Hello Austin!

What is the final result? Not sure I have understand it correctly, can you please provide steps to reproduce the task, we could test it ourselves.

Austin
Posts: 0
Joined: Thu Apr 25, 2013 1:10 am

Remembering variables.

Sure one button stores var i = 0; and var array = ["one", "two", "three"]; a label use i to display different words ex click button i++ and label displays array does this make sense. I want more than one button to increase i which means something needs to remember i and its current value.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Remembering variables.

Hello,

You can use local storage variable
http://docs.appery.io/tutorials/build...

Austin
Posts: 0
Joined: Thu Apr 25, 2013 1:10 am

Remembering variables.

and this will transfer to ios when I export?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Remembering variables.

Yes

Return to “Issues”