For some kind of weird reason my JSON requests writes the following HTML.
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
Kamaya Painters is a group name used by Dutch artists Tijs Verwest (better known as Tiesto) and Benno De Goeij, from Rank 1. All tracks were released on Black Hole Recordings, and were subsequently licensed to the Planetary Conciousness and Data Records labels. Endless Wave, in 1998, was the first tune to be released by Kamaya Painters and it has been heralded as one of the true trance classics, even though it actually hints towards the similar melody as Liquid Child - Diving Faces. - *I asked for the bio through my script, so this actually works. *
I have written the following jQuery code to call the JSON and write it in my HTML.
$('#artists li a').live('click',function() {
var artistid = $('img', this).attr('alt');
$.getJSON("http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&artist=" + artistid + "&api_key=XXXXXXXXXXXXXXXXXXXXXXXXX&format=json&callback=?", function(data) {
var popupinfohtml = '';
$.each(data.artist, function(i, item) {
console.log(data);
popupinfohtml += " <h5> " +item.name+ " </h5><p> " +item.summary+ "</p>";
});
$('#moreinfo').html(popupinfohtml);
});
});
Here's the matching response: http://www.last.fm/api/show/artist.getInfo
Anyone that can help?