Triggering pageshow event a second time

Triggering pageshow event a second time

BY 18 Nov 2015 Web Application Development

Hi,

I have a page A where the 4 events pagebeforeshow, pageshow, pagebeforehide, pagehide are bound. The user now navigates to page B and from that page, there are two ways back to page A:

1) by using window.history.back();

2) by using tau.changePage(‘PageA.html’);

 

The problem now is that page shows a different behaviour for both scenarios. In 1) the pageshow events are beeing triggered as expected; with 2) they are not! My problem is that I need that these events are beeing triggered, but I cannot use windows.history.back as is is not proper and I need to go back to page A from anywhere from the application.

Why is 2) not triggering those events and how can I force them to do so?

Written by