maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Multi-Page Template design problems

The back button appears only for Ajax navigation.

In your code you use Tiggr.navigateTo('SCREEN_NAME') function which does a full page refresh (not Ajax).

It's better to use Navigate to Page action or if you still prefer to use JavaScript API, you should use this:

code
Tiggzi.navigateTo('GetJobScreen',{})
/code

for ajax navigation.

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Multi-Page Template design problems

Awesome !
Previously I tried Tiggr.navigateTo('GetJobScreen',"ajax");
But had no effect.
I will try this Tiggzi.navigateTo('GetJobScreen',{}) now !
YUP IT WORKS !! Thanks Max

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Multi-Page Template design problems

Now if I can just figure out how to have the results screen collapsible blocks populated from a rest service show the original info when i use the back button.
Its not a Tiggzi problem I know.
Maybe I will figure it out...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Multi-Page Template design problems

We are still looking at this issue...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Multi-Page Template design problems

One option is to invoke the service when you go back...

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Multi-Page Template design problems

Yes Thats true. But I cant count on cel service 100% because of locations.
Maybe I should work with the object data results from the rest service. Make a String and retrive data from that...
Like:

function showSessions(string) {
if (window.JSON!=undefined) {
data = JSON.parse(string);
} else {
data = eval("(" + string + ")");
window.localStorage.setItem("data", string);
}

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Multi-Page Template design problems

That could work...

Return to “Issues”