Ajax request is not working with JSON feed url.
-
I am trying to fetch json feed using Ajax request but it’s not working. it always results in error, I tried using jsonp or json as dataType, also “application/json”, “text/plain”, as contentType but still resulting in error.
Json feed: https://blog.piscessportfishing.com/feed/json/Ajax code:
$.ajax({ type: 'GET', url: "https://blog.piscessportfishing.com/feed/json/", dataType: 'json', data: {}, success: function(data) { console.log(data); }, error: function (Request, textStatus, errorThrown) { alert("Request=" + Request.responseText + "\ntextStatus=" + textStatus + "\nerrorThrown=" + errorThrown); } });
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Ajax request is not working with JSON feed url.’ is closed to new replies.