Page 1 of 1

Help with Setting Bounded LocalStorage

Posted: Tue Aug 27, 2013 4:51 pm
by Emmz

Using a generic rest service to populate a collapsible block with labels inside.

Due to Appery updates. My collapsible block stopped showing properly.

I'm trying to fix or create new one but Appery will now not let me Set a local storage variable named '1' . WHY??

Is there another way to do this ? Via JS code perhaps?

Pic below shows some of my events I'm refering to.

Image

What I need is to set 19 localstorage items bound to labels. from the rest result.

Thanks


Help with Setting Bounded LocalStorage

Posted: Tue Aug 27, 2013 6:07 pm
by Serhii Kulibaba

Hi, Neil!
Name of variable should only contain characters from a-z, A-Z, 0-9, _ ranges and should not start with a number.


Help with Setting Bounded LocalStorage

Posted: Tue Aug 27, 2013 9:33 pm
by Emmz

Thanks!!
""Name of variable should only contain characters from a-z, A-Z, 0-9, _ ranges and should not start with a number.""

Thats what the Appery warning was too!
Hmm. Do you think i saw that warning and thats why I'm asking for help?
Really. 2 Hours and you....
Nevermind.


Help with Setting Bounded LocalStorage

Posted: Wed Aug 28, 2013 1:15 am
by maxkatz

"1" is invalid JavaScript variable name. It wasn't enforced before but that's not correct. Using "1" -- your app could stop working at any point.


Help with Setting Bounded LocalStorage

Posted: Wed Aug 28, 2013 12:53 pm
by Emmz

Well I'm buggered now. This is a big problem . And editing the screen is almost impossible because it thake 40 seconds just for appery to update a label name change.

Where in WC3 does it say I can't use "1" as a localstorage name?


Help with Setting Bounded LocalStorage

Posted: Wed Aug 28, 2013 1:04 pm
by maxkatz

The key (key/value) could be 1, but actual JavaScript variable cannot.

If you see a delay updating names, restart the browser. It's most likely a browser issue (memory, etc).


Help with Setting Bounded LocalStorage

Posted: Wed Aug 28, 2013 5:44 pm
by Emmz

So I said in the post. localstorage variable is named "1"
But Appery wont allow localstorage variable is named "1"
NOT variable named 1

Am I missing something?

Clearing browser didnt help. And I only loaded 1 page. But I think its just too big perhaps...


Help with Setting Bounded LocalStorage

Posted: Wed Aug 28, 2013 6:24 pm
by Serhii Kulibaba

Please, rename all variables according to rule above. And use it in the future.


Help with Setting Bounded LocalStorage

Posted: Wed Aug 28, 2013 8:49 pm
by Emmz

RIDICULOUS!!!!!!!!!!


Help with Setting Bounded LocalStorage

Posted: Wed Aug 28, 2013 9:04 pm
by maxkatz

We are sorry this change is causing problems in your code. We are making everything possible for this not to happen in the future.