Listing songs and artists per genre
Jamroom Developers
I was able to get it working but for that I had to do my own jrLoad functions that inserts results with ajax. Im passing the variable of the genre to the function and then create the {jrCore_list call.
I could not use the pager since it will break the persistent player on the website.
This is a example:
var moreSongsTest = function(urlz,nextPage,totalPages,genreSelected) {
console.log(genreSelected);
var response;
$.ajax({ type: "GET",
url: urlz+nextPage+'&genre='+genreSelected,
async: false,
cache:false,
datatype:"html",
success : function(data)
{
response= $(data).find('li.song_container');
console.log(response);
nextPage = parseInt(nextPage) + 1;
if(nextPage == totalPages+1) {
$('.replace_linkGenre').html(' You reached the end of the list, No more songs');
} else {
$('.replace_linkGenre').html('More songs');
}
}
});
$('#new_songsTest').append(response);
}