Page 2 of 3

Back Button

Posted: Tue Jul 31, 2012 1:38 pm
by Emmz

Yup It works in Single page but problematic in multi-page. Multi-Page worked until I added Collapsible blocks with Rest Service Content.
For Now I'm going Back to Single Page Design. Everything works good for That.
Thanks.


Back Button

Posted: Tue Jul 31, 2012 5:29 pm
by maxkatz

The button is not shown when you add a collapsible block with REST service or it's there but doesn't work?


Back Button

Posted: Tue Jul 31, 2012 5:47 pm
by Emmz

If They Show They always work. But mostly they not show up at all..


Back Button

Posted: Tue Jul 31, 2012 6:23 pm
by maxkatz

The button will show if there is history, such as when you navigated to a page. It will not show if there is not history -- that's just how jQuery Mobile works.

Is this the same issue https://getsatisfaction.com/tiggzi/to...?


Back Button

Posted: Tue Jul 31, 2012 10:11 pm
by Emmz

Yes I know about the history as I have said before. There Is History
I have checked everything over no JS errors.
There must be something about the cache thats qwerky since yesterday.
The back button is tied to cache as well as loaded content from rest svc which no longer shows up when using android back button or browser back button.
ie. Collapsable block content from rest svc. Expand a block, click button goes to another page. When I click the back btn the content previously loaded is gone.
2 Days ago this did not happen.


Back Button

Posted: Wed Oct 10, 2012 10:22 pm
by Robert Pollock

I'm using Google maps with various pointers added.

The pointers are set (on a click) to open a new screen, with information about the location the pointer is at. I've added a back button to these information screens, but it returns the user to the original map state of mobilescreen1, not the view the user had when the pointer was clicked.

Is there a way of recording the current screen state at the time of a user click, so it can be recreated when the user goes 'Back'?


Back Button

Posted: Wed Oct 10, 2012 11:04 pm
by maxkatz

How did you add the button? Did you use the jQuery Back button option?


Back Button

Posted: Thu Oct 11, 2012 12:22 am
by Robert Pollock

I added a back button using the screen header Properties dialog; and another using the PaletteButtonClick EventNavigate to page and both do exactly the same thing (open the original map state).

I've also tried with a Popup instead of a Screen, and the Close box also does the same thing.

Do I have to save the lat and long when the pointer is clicked, then recreate the map ? I don't know how to do that.


Back Button

Posted: Thu Oct 11, 2012 3:17 am
by maxkatz

You could save the lat/lon into local storage.


Back Button

Posted: Thu Nov 01, 2012 11:34 am
by Arsalan Sarwer

Try "history.back()", I used it several times, it works fine.