Page 1 of 1

How to reload or refresh the page?

Posted: Mon Jun 03, 2013 10:17 am
by w

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.


How to reload or refresh the page?

Posted: Mon Jun 03, 2013 10:38 am
by w

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.


How to reload or refresh the page?

Posted: Mon Jun 03, 2013 10:40 am
by Maryna Brodina

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