Hi guys can you please show me how to access the content inside the audioCollection object?
I am using the Echonest jQuery plugin with jQuery Templates
https://github.com/Rodeoclash/Echonest-jQuery-Plugin/blob/master/scripts/echonest.js
I went on firebug and typed console.log(audioCollection) and I am getting ReferenceError: audioCollection is not defined. Not sure if I am doing it right.
echonest.artist(artist).audio( function(audioCollection) {
$('#blog-page').find('.post').append( audioCollection.to_html('<p class="song-url" style="display:none;">${url}</p>') );
//appends url variable to html inside of audioCollection
var testing = audioCollection; //returns [Object object]
});
Thank you!
I’m Not familiar with the object, but you can try to use my
dump()function to see what’s in it..UPDATE
to access your values, you can do something like this