Skip to content

Instantly share code, notes, and snippets.

@F1LT3R
Created July 26, 2012 23:23
Show Gist options
  • Save F1LT3R/3185207 to your computer and use it in GitHub Desktop.
Save F1LT3R/3185207 to your computer and use it in GitHub Desktop.
How to use the jQuery OPML to List Plugin
$(function(){
function callback(){
//console.log( 'OPML to List Finished!' );
}
function error(e){
//console.error( 'AJAX ERROR!' );
}
function success(e){
$('#opml-output').opmltolist(e, callback);
};
$.ajax({
url : 'playlist.opml'
, dataType : 'xml'
, cache : false
, success : success
, error : error
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment