Prev Previous Post   Next Post Next
Old 20th January 2015, 16:22   #4
Ri'ins
Junior Member
 
Join Date: May 2012
Posts: 20
neralex, i did like in this instruction https://github.com/Wavestreaming/jquery-shoutcast, but unsuccessfully.
- Downloaded jquery.shoutcast.min.js to my site directory;
- Added scripts before </body> tag;
- And after using codes it shows me only this code.

Settings server and port number ofcourse changing to my own.




edit:

Help me plz to install like in your post.
1. So is the first step to upload jquery to site directory? (see attached screen)
Is it right?


2. Where to put this code?
PHP Code:
<script type="text/javascript" src="jquery.min.js"></script> 
On the website page?


3. Need to create a new txt file like example now-playing.php with this code?
PHP Code:
<script type="text/javascript"
$(
document).ready(function(){ 
    var 
refreshId setInterval(function() { 
        $.
get("now-playing.php", function(data) { 
            $(
"#sc_lastsong").html(data); 
        }); 
    }, 
10000); // 10000 Milliseconds = 10 Seconds 
}); 
</script> 
But how to activate this script on website page?



This is my example - http://synthway.com/popupplayer/, but song name and songs history don't refreshing during the listening radio.
Want to install jquery for my radio stats, but ever can't understand what need to do. Read many instructions but nothing works.

Will be very grateful if somebody explain me how to do it step by step.

Attached Thumbnails
Click image for larger version

Name:	step1.jpg
Views:	731
Size:	69.6 KB
ID:	51645  

Last edited by Ri'ins; 20th January 2015 at 17:26.
Ri'ins is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump