The problem is very similar to json Uncaught SyntaxError: Unexpected token : and JSONP request returning error: "Uncaught SyntaxError: Unexpected token :"
I tried to make a call to fetch Divvy data. I use JSONP because I don't want to use server for this simple front end app.
$.ajax({
type: "GET",
url: 'http://divvybikes.com/stations/json',
dataType: "jsonp",
jsonp: "jsonp",
jsonpCallback: "handleData",
success: function(){
}
});
However, Chrome keeps alerting with "Uncaught SyntaxError: Unexpected token :"
The url http://divvybikes.com/stations/json alone works well in browser. Also, the status code is 200 all the time.
Anybody can help?