Skip to content

Instantly share code, notes, and snippets.

@thcipriani
Created March 11, 2011 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thcipriani/866134 to your computer and use it in GitHub Desktop.
Save thcipriani/866134 to your computer and use it in GitHub Desktop.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
function refreshTitleArtist(){
$.ajax({
type: "GET",
url: "../player_pages/nowplaying/floyds_justpld_output.xml",
dataType: "xml",
success: function(xml) {
$(xml).find('item').each(function(){
var song = $(this).text();
$('#justpld').html('<p>'+ song +'</p><br />');
});
}
});
}
refreshTitleArtist();
setInterval(refreshTitleArtist,60000);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment