Created
May 21, 2012 02:42
-
-
Save jlengstorf/2760361 to your computer and use it in GitHub Desktop.
#11 Code example from "JSON: What It Is, How It Works, & How to Use It"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
}); | |
} |
$('#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
}
Ruthann 28 Kentucky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very new please help