What do you mean by "change one of the generated slider handles and generate a new one"? Any chance you could share a live sample, maybe create one here: http://jsbin.com/
<http://jsbin.com/>Thanks. - Richard On Tue, Aug 4, 2009 at 3:13 PM, Patrick <[email protected]> wrote: > > Hi folks, > > I'm generating jQuery UI slider elements in a Rails helper: > > def add_link(form_builder, method) > link_to_function 'Add' do |page| > page << "$(\"div#range\"+new_id+\"\").slider({ > range: true, > min: 1, > max: 7, > values: [parseInt($(\"#lecture_events_attributes_\"+new_id+ > \"_from_block\").val()), parseInt($(\"#lecture_events_attributes_ > \"+new_id+\"_to_block\").val())], > slide: function(event, ui) { > $(\"#lecture_events_attributes_\"+new_id+\"_from_block\").val > (ui.values[0]); > $(\"#lecture_events_attributes_\"+new_id+\"_to_block\").val > (ui.values[1]); > } > });" > end > end > Basically, it just adds the slider to a div and runs the slider-js > code afterwards. > > If I change one of the generated slider handles and generate a new > one, all values are reseted to the default values, which is very > annoying. > > What's wrong here? Id's are correct, rechecked everything. I'm > fiddling around since hours. > > Thanks! > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" 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/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
