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
}
});
}
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)