Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Journey Recording using GPS Tracking

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Journey Recording using GPS Tracking

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

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Journey Recording using GPS Tracking

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Journey Recording using GPS Tracking

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.

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Journey Recording using GPS Tracking

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()?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Journey Recording using GPS Tracking

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.

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Journey Recording using GPS Tracking

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Journey Recording using GPS Tracking

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.

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Journey Recording using GPS Tracking

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.

Oleg Danchenkov
Posts: 0
Joined: Tue Apr 30, 2013 5:51 pm

Journey Recording using GPS Tracking

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

Return to “Issues”