w
Posts: 0
Joined: Tue Mar 26, 2013 12:30 pm

How to reload or refresh the page?

I have a page with a list, and by clicking a button, the page should be reloaded/refreshed or pageshow event should be fired.
Because in the pageshow event, a service is called, and the list is populated.
Clicking the button sets a localstorage variable that is used by the service.
So clicking the button should show the page with the result of the new service request. I do not want to do service.execute, because other things are also happening in the pageshow event that should also be repeated.

I tried Appery.navigateTo('thisPage'); and also Appery('thisPage').trigger('pageshow') , but nothing happens.

w
Posts: 0
Joined: Tue Mar 26, 2013 12:30 pm

How to reload or refresh the page?

I can not use location.reload() because this clears the sessionStorage, which I need because there are variables stored there.

So I just want the pageShow event to be triggered.

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

How to reload or refresh the page?

codeAppery('thisPage').trigger('pageshow')/code should work. Check screen name, it's case sensitive.

Return to “Issues”