storage variable when render all pages in one html file

This forum contains topics that were moved from Get Satisfaction
David wyatt
Posts: 0
Joined: Mon Sep 15, 2014 7:12 pm

storage variable when render all pages in one html file

Post by David wyatt »

The strangest thing happens with 2 different apps I have.

When I select the render all pages in one html option the storage variables seem to have go craazy, as in
input "1" in to storage variable, storage variable shows "undefined"
input "2" in to storage variable, storage variable shows "1"
input "hello" in to storage variable, storage variable shows "2"
input "now" to storage variable, storage variable shows "hello"
and so on.
as you can see its like in time warp lol

this only happens when you export to android and on apperyio test app, but both the test and export to html work fine.

As Ive said this has happened on more then one app

David wyatt
Posts: 0
Joined: Mon Sep 15, 2014 7:12 pm

storage variable when render all pages in one html file

Post by David wyatt »

I think i understand why now. The variable is transferring between 2 pages and is shown on a page show command, i wonder if because the page is pre rendered that command is carried out before the variable input is created. and then every time the page shows it shows what was rendered before the next input.
hope that makes sense
if so is there any way around this?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

storage variable when render all pages in one html file

Post by Yurii Orishchuk »

Hi David,

Please show us more details(screen shots) about your implementation.

And check if you use "page show" and not "page load".

Thanks.

David wyatt
Posts: 0
Joined: Mon Sep 15, 2014 7:12 pm

storage variable when render all pages in one html file

Post by David wyatt »

Hi Yurii,
thank you for your help,
it is page show not page load. the screen shots show the contents of html component are set in' storage'. then launched in the next page from 'storage'
Image Image

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

storage variable when render all pages in one html file

Post by Egor Kotov6832188 »

Hi David,
could you please show us screenshot that shows how you setting your localStorage variable ?

David wyatt
Posts: 0
Joined: Mon Sep 15, 2014 7:12 pm

storage variable when render all pages in one html file

Post by David wyatt »

Hi Egor,

The source is from a html component filled by a service from a rss feed. the feed creates an array from a carousel that contains a label called link5 label and html component. by clicking the link5 the storage variable is set.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

storage variable when render all pages in one html file

Post by Yurii Orishchuk »

Hi David,

Please make sure your code runs correctly.

Details: http://prntscr.com/6iyv23/direct

Also please give us your app public link and describe steps to reproduce this issue in your app.

Thanks.

Post Reply