How to display current track for 2 radio channels on same web page

shad

New Member
Hi,

I have 2 radio channels with internet radio org, InTheMusicFm Dance and InTheMusicFM Lounge, I would like to display the current song for the Dance and Lounge channel
on the same web page, but there seems to be a conflict and only one channel track appears, while the other just shows loading.

For the 2 radio stations I pasted in the following code just before the body
tag of the web page, it appears only the last script language declaration is picked
up ? The code below is just an example and does not have my station name in.

Any suggestions would be appreciated.

Thanks Shad


<script language="javascript" type="text/javascript" src="http://shoutcast.internet-radio.org.uk/system/streaminfo.js"></script>
<script language="javascript" type="text/javascript" src="http://shoutcast.internet-radio.org.uk/js.php/...dance.../streaminfo/rnd0"></script>



<script language="javascript" type="text/javascript" src="http://cp2.internet-radio.org.uk/system/streaminfo.js"></script>
<script language="javascript" type="text/javascript" src="http://cp2.internet-radio.org.uk/js.php/...lounge../streaminfo/rnd0"></script>
 
Hi Shad

We suggest checking the JavaScript and perhaps duplicating the code on a simple page to test it. Can you provide a link to the page in question and we can look into it for you.
 
ok thanks

I will release the web page tonight, and let you know the url. Currently I have just been testing the web page locally on my pc.

Cheers
 
Hi,

My radio station url is www.InTheMusicFM.co.uk

On the same single web page

- lounge radio current track works fine
- dance radio current track shows loading

I think this is because the current track function is defined
in 2 different js javascript files for the 2 stations and is conflicting ?

Cheers
 
Hi Shad

We have done some testing and yes you are right there is a conflict there. Our suggestion would be to load the second up in an iframe as this would be a separate page and not cause the conflict.
 
Top