Skip to content

Instantly share code, notes, and snippets.

@alanerzhao
Created November 2, 2013 15:21
Show Gist options
  • Save alanerzhao/7280044 to your computer and use it in GitHub Desktop.
Save alanerzhao/7280044 to your computer and use it in GitHub Desktop.
function ajaxCall() {
$("#LoadingImage").show();
$.ajax({
type: "GET",
url: "http://api.flickr.com/services/feeds/photos_public.gne?tags=car&tagmode=any&format=json&jsoncallback=?",
dataType: "jsonp",
success: function(data) {
console.log(data);
$("#LoadingImage").hide();
},
error: function(xhr, status) {
$("#LoadingImage").hide();
alert('Unknown error ' + status);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment