View Single Post
Old 17th November 2012, 09:02   #1
LigShot
Junior Member
 
Join Date: Nov 2012
Posts: 5
Please help me quick!

Hello! I have a now playing script in a HTML page.It work but it dosen't refresh after the song change.What am I need to change to this code to refresh automatically after a song change?

code:
<script>
$(document).ready(function(){
$("#front_video").fitVids();

getData();
setInterval(function() {
getData();
}, 3000);

function getData(){
$.get('output_file.txt', function(data) {
$('.now-live span').html(data);
});
}
});
</script>



Sorry for my English!

Thank you in advice!
LigShot is offline   Reply With Quote