Page 1 of 1

Tiggr.navigateTo() parameters

Posted: Wed Jun 20, 2012 9:42 pm
by Claudio

Hi,
I saw in some your answers that I can use the Tiggr.navigateTo() javascript API to navigate via custom javascript to another screen.
In your code you use two parameters like

Tiggr.navigateTo('mainScreen',"ajax");

but in the doc, this method has only one parameter
http://tiggzi.com/api/symbols/Tiggr.h...

My question is: which are the values I can use as second parameter?

Thanks


Tiggr.navigateTo() parameters

Posted: Wed Jun 20, 2012 10:29 pm
by maxkatz

The second parameter, if present (can be any value), indicates that Ajax navigation should be used. The API will be updated.


Tiggr.navigateTo() parameters

Posted: Thu Jun 21, 2012 8:01 am
by Claudio

Thanks Max,
is there a way to set up a transiction mode using that API?


Tiggr.navigateTo() parameters

Posted: Thu Jun 21, 2012 3:51 pm
by maxkatz

Transactions are not part of this API.


Tiggr.navigateTo() parameters

Posted: Sat Jun 23, 2012 3:57 pm
by Chris2656882

When I include "ajax" as the second parameter, the script fails.

With only the page name as a parameter, it does a full page refresh. How do I prevent that from happening?


Tiggr.navigateTo() parameters

Posted: Sat Jun 23, 2012 7:50 pm
by maxkatz

I tried this:

Tiggzi.navigateTo('mobilescreen2', 'ajax');

and it worked. Check if you get any errors in the console.


Tiggr.navigateTo() parameters

Posted: Sun Feb 17, 2013 7:01 pm
by Reiner Saddey