Created
November 3, 2011 13:20
-
-
Save hanspeide/1336456 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$.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