Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Help with Setting Bounded LocalStorage

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Help with Setting Bounded LocalStorage

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

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Help with Setting Bounded LocalStorage

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.

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

Help with Setting Bounded LocalStorage

"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.

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Help with Setting Bounded LocalStorage

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?

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

Help with Setting Bounded LocalStorage

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).

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Help with Setting Bounded LocalStorage

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...

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Help with Setting Bounded LocalStorage

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

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Help with Setting Bounded LocalStorage

RIDICULOUS!!!!!!!!!!

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

Help with Setting Bounded LocalStorage

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

Return to “Issues”