Page 14 of 21

Journey Recording using GPS Tracking

Posted: Tue Jul 30, 2013 12:52 am
by Joe Paisley

I'm not sure what I'm looking for in Chrome developer tools. The graphs don't appear in Chrome web browser.


Journey Recording using GPS Tracking

Posted: Tue Jul 30, 2013 5:43 am
by Maryna Brodina

[quote:]When I go to the "results" page, both jplot graphs show up, but neither have any data in them.[/quote] run your app in browser, open Chrome Developer Tools (Console tab), go to page you have problem with, check if there are any errors.


Journey Recording using GPS Tracking

Posted: Tue Jul 30, 2013 7:27 pm
by Joe Paisley

This is what is displayed in the Console tab of Chrome Developer Tools. I'm not sure if any of this is related to the problem I'm encountering. Image


Journey Recording using GPS Tracking

Posted: Tue Jul 30, 2013 9:30 pm
by Alena Prykhodko

Most of the errors are related to the security and permission to be opened in the site frames.
Probably the most effective way to find errors is to use alert() on every key places. You can also call alert() to get the values ​​of the required variables to check if it is correct on each step of the application.


Journey Recording using GPS Tracking

Posted: Sun Aug 04, 2013 1:45 pm
by Joe Paisley

So you're saying that one of these permission errors is causing the jplot graphs to not populate any data? If so, which permission should I address by calling alert()?


Journey Recording using GPS Tracking

Posted: Mon Aug 05, 2013 7:50 am
by Kateryna Grynko

Hi Joe,

No, we mean no permission from the Android/iOS permissions list.

Your browser complains about the permissibility of cross-domain queries and the opening of sites in frame, when the domain policy forbids it.

We advise to use the alert () on a real device in the built and installed file.


Journey Recording using GPS Tracking

Posted: Wed Aug 07, 2013 1:30 am
by Joe Paisley

I'm sorry Katya, I'm confused. You're saying that the permissions are affecting the jplot graphs? If so, I'm not sure why. The graph I had before worked, and populated data after a journey. Now no data is showing up after recording a trip. What's causing the jplot graphs to not work?


Journey Recording using GPS Tracking

Posted: Wed Aug 07, 2013 10:25 am
by Kateryna Grynko

Hi Joe,

We commented your screen shot of console errors and talked about access to other domains problem. But not about the resolutions of device screen.

Please search in Internet the messages you show on the last Chrome console screen shot .

You would need to test your app as built apk/ipa installed on device or in emulator.


Journey Recording using GPS Tracking

Posted: Fri Aug 09, 2013 1:46 pm
by Joe Paisley

I'm sorry Katya, I'm failing to understand how the console errors produced by Google Chrome Developer Tools are related to the issue with the jplot graphs. The permissions errors in Chrome Developer consoles are related to the jplot graph rendering problem? The original jplot graph did plot data related to average speed before, but it doesn't now, and the console permission errors were not an issue then. How could the permission errors be affecting the jplot graphs now? The graph worked after you gave me that wonderful reply at the top of this page with the correction to "geolocation 1" success event. You're the professional, but I don't have any idea how to use alert() to make the jplot graphs render data.

Thanks so very much for your patience.


Journey Recording using GPS Tracking

Posted: Fri Aug 09, 2013 8:49 pm
by Oleg Danchenkov

As I see the problem is in lines
codevar coordsArray = localStorage.getItem("coordsArray");
var startTime = coordsArray[0].time;/code
Replace those lines with
codevar coordsArray;
try {
coordsArray = JSON.parse(localStorage.getItem("coordsArray"));
if ({}.toString.call(coordsArray) !== "[object Array]") {
return;
}
}catch ( e ){
return;
}
var startTime = coordsArray[0].time;
/code