Just looking at this code sample, I don't see any reason why this wouldn't work, assuming ytplayer.getVolume() returns an integer.
One problem I do see is that you have an extra comma the end. IE will choke on this. - Richard On Thu, Mar 5, 2009 at 9:06 AM, Elledinho <elledi...@gmail.com> wrote: > > Hi peoples. > > I just wanted to ask... is is a bug that I cant use a function as > value of a Slider (UI) ? > > fx: > $("#soundControl #setVolume").slider({ > range: "min", > min: -3, > max: 103, > value: ytplayer.getVolume(), > }); > > This wont even show the slider because of the value of value > (ytplayer.getVolume()) > > What can I to make this work?