I'm trying to do a get request to a website and get the response.
I'm able to do a successful HTTP request and response, but for some reason the javascript error pops up and it breaks my code.
I'm assuming it is because of the new query parameter it is appending, like http://checkip.amazonaws.com/?callback=jQuery152011860558553598821_1374187260201&_=1374187260214
Code here:
http://jsfiddle.net/R7EPt/191/
$('document').ready(function() {
var url = 'http://checkip.amazonaws.com/';
$.getJSON(url + "?callback=?", null, function(data) {
alert(data);
});
});
Could some one help me!