I am using the following function to load a PlayList of Songs from 'PlayListJSON.aspx' but somethings seems wrong,evrytime OnFailure is getting called, I am unable to debug it further. any help would be really gr8.
Player.prototype.loadPlaylist = function (playlistId, play) {
req = new Ajax.Request('/PlaylistJSON.aspx?id=' + playlistId,
{
method: 'GET',
onSuccess: function(transport,json) {
eval(transport.responseText);
player.setPlaylist(playlist.tracklist,playlist.title, playlistId);
player.firstTrack();
if (play)
player.playSong();
},
onFailure: function() {
//error
}
});
}