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!
console.log(audioCollection)?audiois not a standard jQuery function. You have to provide more information.audioCollectiononly exists in the scope of its enclosing function. That's why you can't get its value from the global scope with Firebug.