Instantly share code, notes, and snippets.

Embed
What would you like to do?
#11 Code example from "JSON: What It Is, How It Works, & How to Use It"
function loadFlickr(flickrid)
{
$('#feed').html('<span><img src="/blog/images/lightbox-ico-loading.gif" alt=""></span>');
$.ajax({
type:'GET',
url:"http://api.flickr.com/services/feeds/photos_public.gne",
data:"id="+flickrid+"&lang=en-us&format=json&jsoncallback=?",
success:function(feed) {
// Do something with the response
},
dataType:'jsonp'
});
}
@anessasmommy66

This comment has been minimized.

Show comment
Hide comment
@anessasmommy66

anessasmommy66 Jan 13, 2017

Very new please help

anessasmommy66 commented Jan 13, 2017

Very new please help

@anessasmommy66

This comment has been minimized.

Show comment
Hide comment
@anessasmommy66

anessasmommy66 Jan 13, 2017

$('#feed').html('');
$.ajax({
type:'GET',
url:"http://api.flickr.com/services/feeds/photos_public.gne",
data:"id="+flickrid+"&lang=en-us&format=json&jsoncallback=?",
success:function(feed) {
// Do something with the response
},
dataType:'jsonp'
});not sure what to do
}

anessasmommy66 commented Jan 13, 2017

$('#feed').html('');
$.ajax({
type:'GET',
url:"http://api.flickr.com/services/feeds/photos_public.gne",
data:"id="+flickrid+"&lang=en-us&format=json&jsoncallback=?",
success:function(feed) {
// Do something with the response
},
dataType:'jsonp'
});not sure what to do
}

@anessasmommy66

This comment has been minimized.

Show comment
Hide comment
@anessasmommy66

anessasmommy66 Jan 13, 2017

Ruthann 28 Kentucky

anessasmommy66 commented Jan 13, 2017

Ruthann 28 Kentucky

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment