GregJohnson
Posts: 0
Joined: Sun Feb 05, 2012 9:39 pm

Variables

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Variables

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/

Return to “Issues”