Hi Joe,
Please take a look at the last line of the log..
Hi Joe,
Please take a look at the last line of the log..
Im sorry Katya, what action needs to be taken to correct this? Thank you!
Hello! Looks like you have some errors in your custom JS code. You need to debug it http://docs.appery.io/documentation/a...
Could it be in my show page javascript?
code
Appery("pause").hide();
Appery("start").hide();
try{
var coordsArray = JSON.parse(localStorage.getItem("coordsArray"));
var startTime = coordsArray[0].time;
var points = [];
for (var i=0; i<coordsArray.length; i++){
points.push([(coordsArray.time - startTime) / 1000 / 60, coordsArray.speed]);
}
var plot = $.jqplot('plot2', [points], {
series:[{showMarker:false}],
axes:{
xaxis:{
label:'Journey Time (minutes)',
labelRender: $.jqplot.CanvasAxisLabelRenderer},
yaxis:{
label:'Altitude (feet)',
labelRenderer: $jqplot.CanvasAxisLabelRenderer}
var plot = $.jqplot('plot1', [points], {
series:[{showMarker:false}],
axes:{
xaxis:{
label:'Journey Time (minutes)',
labelRenderer: $.jqplot.CanvasAxisLabelRenderer
},
yaxis:{
label:'Speed (m/h)',
labelRenderer: $.jqplot.CanvasAxisLabelRenderer
}
}
});
} catch ( e ){
}
/code
JSLint shows:
Which error is causing the console error "unexpected token var"? And what should I change to fix this error?
I deeply appreciate all of your help in this. Once these to jplot graphs populate data in them, the app will be complete.
Could it not be working because I have moved it all to one page instead of two separate pages?
Thanks once more.
Hi Joe! There are three brackets missing in your code. Instead of codevar plot = $.jqplot('plot2', [points], {
series:[{showMarker:false}],
axes:{
xaxis:{
label:'Journey Time (minutes)',
labelRender: $.jqplot.CanvasAxisLabelRenderer},
yaxis:{
label:'Altitude (feet)',
labelRenderer: $jqplot.CanvasAxisLabelRenderer}/code
should be codevar plot = $.jqplot('plot2', [points], {
series:[{showMarker:false}],
axes:{
xaxis:{
label:'Journey Time (minutes)',
labelRender: $.jqplot.CanvasAxisLabelRenderer},
yaxis:{
label:'Altitude (feet)',
labelRenderer: $jqplot.CanvasAxisLabelRenderer}
}
})/code
Thanks so much Marina!
Hi, JSLint doesn't show errors, please check console.
Thanks Marina! I wasn't sure, but I assumed you would have let me know about the error the first time I shared the initial "JSLint" screenshot. The error that is appearing in logcat now is below. Is this the error causing the jplot graphs to not appear on the "recordride" page? Thank you so much for you time!
Hi Joe,
In these logs there are messages from both OS and other applications run simultaneously with your app. Sorry, we can't say what caused the error.