• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

embed refreshing shoutcast stats

oates151

New Member
I am trying to put the current song playing on my shoutcast stream into my website (seen at: http://camp.sharpertech.net/surge). The script i'm using for it is GMTT (http://camp.sharpertech.net/surge/radio/radio_stats.php). I had a problem when I tried using PHP include because the radio_stats.php refreshed every 10 seconds, so it would error out after 10 seconds.

I heard I can fix this with AJAX, but I have no clue what i'm doing there. Why method should I go about trying to get these stats to work. The iframe method I am using now is not working out too well because of browser compatibility and because the text on the stats is on the bottom and not shown as i'd like it.

Thanks so much for your help guys,

-Pat
 
Pat, like i said, i am not ajax guru, and Joe will still be the best to help here, but, this may be able to help you in your quest without him.

http://www.webmasterworld.com/javascript/3700144.htm

check that out. sounds similar to what you want, but, you want to do it without clicking anything, so, just incorporate a JS refresh after so many seconds or something. that should work, but, not 100% and dont have time to fool with it myself since i am at work right now. if i get a chance later, i will see if i can put something together if you dont get it yourself.
 
Having some trouble with this - maybe there is an easier way to set this up.

I know www.fusionchicago.com was able to pull it off with their stats some how, but the source code isn't giving me any hints as to how. I hope I can get this working some how - otherwise, i'll just have to set the radio_stats.php to not auto-refresh, but that would kind of make the stats function pointless.

If you have any idea of how fusion put their stats together, please let me know. I may just have to go out and hire a programmer to try and put it together if it's too much of a complicated job - I know everyone here is busy with other programming projects.

Thanks for your help so far - let me know if you have an idea

-Pat
 
they are using frames and more than likely php to generate the content since i dont see any javascript references in that frames code.
 
Back
Top