PDA

View Full Version : Reloading the status page



joseche
2008-03-23, 19:11
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 ?

mherger
2008-03-26, 03:18
> 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

pippin
2008-03-26, 04:02
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?

mherger
2008-03-26, 04:13
> Plus use of EXT, I suppose?

It will be based on ExtJS2.

--

Michael