Well then, this looks suspect:
Code:
<SCRIPT LANGUAGE="JavaScript">
<!---
var refreshID = "";
refreshID = setTimeout("DoRefresh()", $timeout$);
function DoRefresh()
{
var buster = Math.random();
document.location.href = 'http://www.qmusicradio.co.uk/songinfo.asp?buster='+buster;
}
//--->
</SCRIPT>
That's only going to happen once, or possibly not at all, if $timeout$ is undefined. Try using setInterval and putting a real number in there instead of $timeout$, like 500, for every half second. Still, I think the result of that will be to replace the entire page with:
Code:
'http://www.qmusicradio.co.uk/songinfo.asp?buster='+buster;
This thing use an iframe? Not as far as I can see. Anyways, I think you would be better off scrapping the entire above script and putting these lines of code:
Code:
var refreshID = "";
refreshID = setInterval("DoRefresh()", 500);
function DoRefresh(){
if xmlsource not different
return;
var buster = Math.random();
xmlsource = 'http://www.qmusicradio.co.uk/songinfo.asp?buster='+buster;
if (window.ActiveXObject)
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
else if (document.implementation && document.implementation.createDocument)
var xmlDoc= document.implementation.createDocument("","doc",null);
if (typeof xmlDoc!="undefined"){
xmlDoc.load(xmlsource)
}
fetchxml()
}
just after this line:
Still, we need to have a way of determining if the xml doc has changed (represented as red in the above code). If you have a way of doing that, it could work out well.
Bookmarks