Getting error in AutoComplete API with JSON/jquert/Ajax ?

  • 1
  • Question
  • Updated 6 years ago
Hi,
I am configuring AutoComplete API and Getting error in Firebug as below:

SyntaxError: invalid label
[Break On This Error]

{ "RESULTS": [

aq?que...6918456 (line 1, col 2)

Please see attached image.



Below is my code:
jQuery(document).ready(function ($) {
$.ajax({
url: "http://autocomplete.wunderground.com/...",
dataType: "jsonp",
crossDomain: true,
success: function (parsed_json) {
//alert(parsed_json);
data = JSON.parse(parsed_json);
},
error: function (xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(thrownError);
}
});
});
Photo of dncbhargav

dncbhargav

  • 3 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of dncbhargav

dncbhargav

  • 3 Posts
  • 0 Reply Likes
done with change in url

url: "http://autocomplete.wunderground.com/...=?",