Skip to content

Instantly share code, notes, and snippets.

@hanspeide
Created November 3, 2011 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanspeide/1336456 to your computer and use it in GitHub Desktop.
Save hanspeide/1336456 to your computer and use it in GitHub Desktop.
$.getJSON(url,
function(data) {
var output = '';
$.each(data.query.results.item, function(i,item){
output += '<li><a href="' + item.spotify-uri-worldwide + '><img src="' + item.cover-uri + '/>' + item.artist + " " + item.title + '</a></li>';
});
$('#albumlist').append(output).listview('refresh');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment