Airport-Data.com Forum Index  
  Airport-Data.com » Forums  Guest: Log in |  Register |  Search |  Memberlist |  Usergroups |  Profile |  Private messages |  FAQ 
API Problem with jQuery       
Post new topic   Reply to topic    Airport-Data.com Forum Index -> General
  Display posts from previous 
Display posts from previous:   

  API Problem with jQuery 
Author Message
winc



Joined: 31 Oct 2017
Posts: 2

PostPosted: Tue Oct 31, 2017 10:52 pm    Post subject: API Problem with jQuery Reply with quote

I've been trying to get the thumbnails links using jQuery but end up unsuccessful no matter I define async call with specific parameter. I knew it return json but but with the configuration below, I kept getting error. If I tried with jsonp for dataType instead of json, the error return is like this, "parsererror Error: jQuery321006600883555805903_1509508132054 was not called"

var url = 'http://www.airport-data.com/api/ac_thumb.json?m=400A0B&n=2";
$.ajax({
type: 'GET',
url: url,
crossDomain: true,
dataType: 'json',
contentType: "application/json",
success: function(json) {
console.log(json);
},
error : function(httpReq,status,exception){
alert(status+" "+exception); }
});

Please advise me of how could i get the proper json return to my script.?

Post new topic   Reply to topic    Airport-Data.com Forum Index -> General All times are GMT - 5 Hours
Page 1 of 1
View previous topic :: View next topic  

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Copyright 2004-2011, Airport-Data.com. All rights reserved.
Airport-Data.com does not guarantee the accuracy or timeliness of any information on this site. Use at your own risk.
Do NOT use these information for navigation, flight planning, or for use in flight.