Page 1 of 1

Variables

Posted: Mon Feb 13, 2012 8:38 pm
by GregJohnson

How do I programmaticly manipulate the variables set by the set local variable action? And can I set variables that persist after the application is closed, like config variables?


Variables

Posted: Mon Feb 13, 2012 8:52 pm
by maxkatz

It's just the standard HTML5 Local Storage. From any JavaScript, you an use any of the methods to manipulate the variables:

code
getItem(key);
setItem(key, value);
removeItem(key);
void clear();
/code

For example, to create a new variable:
code
localStorage.setItem('name', 'Joe');
/code

More info: http://dev.w3.org/html5/webstorage/