Hi Cojones, I think you will result in a "Too meuch recursion error". Why, because as the Doc says: NOTE: when using setValue, the callback functions (below) are called.
the mentionned function (with below is onChange, ...). That means that you will onChange calculate the new value, and change the new set value to a new ca On 12 mar, 14:25, Cojones <[email protected]> wrote: > Hello, > > I'm having a problem with getting my sliders a bit depending. They > should depend on a value in a text field. > > I have 5 different sliders with a range from 0 to 100 and the text > field has the value of 300 which is the total amount that can be used > in these 5 sliders. This is my code: > onChange: function(value) { > total.value = total.value-(-(attribute01.value-value)); > attribute01.value = value; > if(total.value < 0) { > attribute01.value = attribute01.value-(-total.value); > total.value = 0; > this.setValue(10); //What to put here? > } > > } > > My question is how to set the value of the slider I just changed to a > different value? > > Thanks for the help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
