Page 1 of 1

storage variable when render all pages in one html file

Posted: Mon Mar 16, 2015 9:21 pm
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


storage variable when render all pages in one html file

Posted: Mon Mar 16, 2015 9:29 pm
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?


storage variable when render all pages in one html file

Posted: Tue Mar 17, 2015 5:27 am
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.


storage variable when render all pages in one html file

Posted: Tue Mar 17, 2015 8:52 pm
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


storage variable when render all pages in one html file

Posted: Wed Mar 18, 2015 9:58 am
by Egor Kotov6832188

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


storage variable when render all pages in one html file

Posted: Wed Mar 18, 2015 5:11 pm
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.


storage variable when render all pages in one html file

Posted: Fri Mar 20, 2015 3:35 am
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.