View Full Version : Reloading the status page
I wrote a progress bar that uses javascript's setTimeout function and runs every second, but then the song ends it doesn't reload, my status page gets frozen, if I set the href of the page to '/status.html?player=....' and reloads it and it will mess the current song, sometimes it cycles between two songs, sometimes it only repeats the first part.
So I need either:
1. let the slimserver reload the page when it changes the song
2. do it myself properly
Any pointers with it ?
> I wrote a progress bar that uses javascript's setTimeout function and
[..]
> Any pointers with it ?
You might want to be patient and wait for SC7.1: I'm going to rewrite the default skin's javascript, factoring out major parts into reusable objects. The progress bar will be one of those. Adding it to your skin will be one line of JS code plus some CSS.
There will be an experimental 7.1 branch later this week.
--
Michael
You might want to be patient and wait for SC7.1: I'm going to rewrite the default skin's javascript, factoring out major parts into reusable objects. The progress bar will be one of those. Adding it to your skin will be one line of JS code plus some CSS.
Plus use of EXT, I suppose?
> Plus use of EXT, I suppose?
It will be based on ExtJS2.
--
Michael
Powered by vBulletin® Version 4.1.12 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.