Page 1 of 1

NavigateTo with reloadPage

Posted: Mon Mar 10, 2014 12:06 pm
by andi

I have 2 problems with an reloadPage in the navigateTo

my OnLoad event is
console.log('inLoad');
Appery('lbInfo').text(Appery('lbInfo').text()+' ... load');

my OnShow event is
console.log('inShow')
Appery('lbInfo').text(Appery('lbInfo').text()+' ... show');

on first load i get in the label "lbInfo ... load ... show" how it should
but after a "Appery.navigateTo('test', {reloadPage: true})"

i get only the original labeltext "lbInfo"

The event OnLoad will be called but it seems that first the evetn is called and THAN the page refresh is done - resulting into a fresh page"

and the OnShow isn't called, but the biggest problem is that the onLoad event is called before page refresh!


NavigateTo with reloadPage

Posted: Mon Mar 10, 2014 10:25 pm
by Alena Prykhodko

Hello Andi,

Did you try to debug the app?
Any error in console?


NavigateTo with reloadPage

Posted: Tue Mar 11, 2014 5:22 am
by andi

Sure i debuged the app ...

I have made a very simple test App and shared it with you

http://appery.io/app/mobile-frame?src...

You can see in the console.log that the event on first load are all fine, and on the secound load only the "load event" is called, but at the wrong time!


NavigateTo with reloadPage

Posted: Tue Mar 11, 2014 9:42 am
by Maryna Brodina

Hello! Thank you, we'll take a look.


NavigateTo with reloadPage

Posted: Wed Mar 12, 2014 5:25 am
by andi

Good morning :)

Did you found something?


NavigateTo with reloadPage

Posted: Wed Mar 12, 2014 5:34 am
by Igor

Sorry, but we need more time.


NavigateTo with reloadPage

Posted: Wed Mar 12, 2014 9:13 am
by Maryna Brodina

Hello!

Page behaviour while reloading is quite complicated http://api.jquerymobile.com/pageconta.... If you need to completely refresh (reload) page it's better to use prewindow.location.reload()/pre