Page 1 of 1

Navbar mystery

Posted: Mon Sep 17, 2012 1:00 pm
by Ole Henrik Oftedal

Hi!

Any changes to Tiggzi in last couple of minutes. Suddenly my NavBar stopped functioning (no action performed). I use it to navigate to an other page with javascript like this:

Tiggr.navigateTo('StatusScreen',{});

Happens with normal test (with browser) and also if I make it as an Android .APK app and run it on my Phone.

An hour ago it worked in both places, and I haven't done any changes recently in this part of my App.


Navbar mystery

Posted: Mon Sep 17, 2012 1:28 pm
by Maryna Brodina

Hello! No, we didn't change anything. Did you use collaboration mode? Please try to logout, login and restart the App. Let us know about the result.


Navbar mystery

Posted: Mon Sep 17, 2012 3:16 pm
by Ole Henrik Oftedal

Hi!

Thanks for fast reply. The result is exactly the same after restart. I've shared the App name: TimeflexApp with Tiggzi Support if you would like to have a look.


Navbar mystery

Posted: Mon Sep 17, 2012 3:21 pm
by maxkatz

Check first if there are any JavaScript errors in browser console.


Navbar mystery

Posted: Mon Sep 17, 2012 3:53 pm
by Ole Henrik Oftedal

In the Console of Firefox Firebug I've no lines at all when I launch an use my App.

When I use Tiggzi App tester in Debug mode I get this:
[17:46:36] System: To view log output, use Tiggzi Mobile Tester to launch your app in the "Debug" mode
[17:47:03] Ole Henrik Oftedal : User joined chat
[17:55:56] Android Device a href="mailto:ole-oft@online.no" rel="nofollow"ole-oft@online.no/a : User joined chat
[17:55:56] Android Device a href="mailto:ole-oft@online.no" rel="nofollow"ole-oft@online.no/a : I/AndroidXMPPMessaging(19332): Connection established
[17:55:56] Android Device a href="mailto:ole-oft@online.no" rel="nofollow"ole-oft@online.no/a : I/AndroidXMPPMessaging(19332): Join to room Android\20Device\20\20ole-oft\40online.no\20
[17:56:06] Android Device a href="mailto:ole-oft@online.no" rel="nofollow"ole-oft@online.no/a : E/Web Console(19332): Uncaught SyntaxError: Unexpected token == at file:///mnt/sdcard/data/com.exadel.tiggr.projectlist/app_default/TimeflexApp.js:2239
[17:56:07] Android Device a href="mailto:ole-oft@online.no" rel="nofollow"ole-oft@online.no/a : I/Web Console(19332): [DEPRECATION NOTICE] window.addPlugin and window.plugins will be removed in version 2.0. at file:///mnt/sdcard/data/com.exadel.tiggr.projectlist/app_default/res/lib/cordova.js:290


Navbar mystery

Posted: Mon Sep 17, 2012 3:59 pm
by maxkatz

Here are a couple of things you can try:

  • Clear browser cache
  • Add plain alert(..) on menu click to see if you get anything
  • Use Navigate To Page action instead of JavaScript.

Navbar mystery

Posted: Mon Sep 17, 2012 6:11 pm
by Ole Henrik Oftedal

-No help. Also tried with different browser on different machines,Tiggzi tester & Android apk app. Same result.
-Nothing happens. Nothing is fired.
-NavigateTo function does not help.


Navbar mystery

Posted: Mon Sep 17, 2012 6:26 pm
by Ole Henrik Oftedal

Mystery solved :-)
I found the bug. I forgot parentheses in a IF statement.

I found the place in code with the help of Tiggzi app tester in Debug mode.
SyntaxError: Unexpected token == at file:///mnt/sdcard/data/com.exadel.tiggr.projectlist/app_default/TimeflexApp.js:2239

Thanks for pointing me in the right direction.