![]() |
#1 |
Junior Member
Join Date: Sep 2015
Posts: 9
|
Really Simple AJAX now playing script
Super easy now playing script, contains 2 files and updates the current song every 10 seconds.
If you are using php simply include demo.php wherever you want the song to be displayed. code: demo.php code: playing.php code: |
![]() |
![]() |
![]() |
#2 |
Major Dude
|
I wouldn't call this an 'AJAX' script... I would call this a PHP script. since its PHP thats actually doing all the work here. this also requires the web host to support sockets in their PHP configuration, most shared hosting providers don't. the only thing you are using Ajax for is calling the php script and displaying it within a div.... AJAX will also not load cross domain or cross port, you need to use something like jsonp.
if you have a V2 DNAS code: |
![]() |
![]() |
![]() |
|
Tags |
now playing, php |
Thread Tools | Search this Thread |
Display Modes | |
|
|