New Mobile Guy
Posts: 0
Joined: Tue Jan 29, 2013 9:09 pm

2 questions re: local variables

First, how do I access the local variables in javascript? I tried accessing it by the name, and it didn't work.

Second, will the value of the local variables be saved across sessions when you're testing the app? (via the Test button on the IDE?) Or do I need to publish it for this to work?

Thanks.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

2 questions re: local variables

Hi!

1) to access the local variables in javascript you should set variable:codelocalStorage.setItem("varName", "value");/code and then read it codevar variable = localStorage.getItem("varName");/code
2) yes, it's saved across sessions

New Mobile Guy
Posts: 0
Joined: Tue Jan 29, 2013 9:09 pm

2 questions re: local variables

Works, thanks!

Return to “Issues”