Page 2 of 2

Multi-Page Template design problems

Posted: Thu Aug 02, 2012 6:25 pm
by maxkatz

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.


Multi-Page Template design problems

Posted: Thu Aug 02, 2012 6:52 pm
by Emmz

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


Multi-Page Template design problems

Posted: Thu Aug 02, 2012 7:02 pm
by Emmz

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...


Multi-Page Template design problems

Posted: Thu Aug 02, 2012 8:07 pm
by maxkatz

We are still looking at this issue...


Multi-Page Template design problems

Posted: Thu Aug 02, 2012 9:42 pm
by maxkatz

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


Multi-Page Template design problems

Posted: Fri Aug 03, 2012 1:12 am
by Emmz

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);
}


Multi-Page Template design problems

Posted: Fri Aug 03, 2012 5:24 am
by maxkatz

That could work...