andi
Posts: 0
Joined: Sat May 25, 2013 9:32 am

NavigateTo with reloadPage

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!

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

NavigateTo with reloadPage

Hello Andi,

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

andi
Posts: 0
Joined: Sat May 25, 2013 9:32 am

NavigateTo with reloadPage

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!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

NavigateTo with reloadPage

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

andi
Posts: 0
Joined: Sat May 25, 2013 9:32 am

NavigateTo with reloadPage

Good morning :)

Did you found something?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

NavigateTo with reloadPage

Sorry, but we need more time.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

NavigateTo with reloadPage

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

Return to “Issues”