Page 1 of 1

Remembering variables.

Posted: Sun Apr 28, 2013 9:28 pm
by Austin

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


Remembering variables.

Posted: Sun Apr 28, 2013 10:03 pm
by Alena Prykhodko

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.


Remembering variables.

Posted: Mon Apr 29, 2013 9:28 pm
by Austin

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.


Remembering variables.

Posted: Mon Apr 29, 2013 10:44 pm
by Igor

Hello,

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


Remembering variables.

Posted: Tue Apr 30, 2013 2:01 am
by Austin

and this will transfer to ios when I export?


Remembering variables.

Posted: Tue Apr 30, 2013 2:49 am
by Igor

Yes