Hello, I have extends scriptaculous slider in my open source project JSControlsTags (http://jscontrolstags.sourceforge.net), taglib to manage controls (like AjaxTags, but with JSON notation), in order to : - generate automaticly *HTML Div* for track and handlers slider. - synchronize slider with a *textbox* (input HTML). When handler slide/change, texbox value is updated with slider value. When textBox is updated, slider value is set with textBox value (only if this value is in the range and is numeric). - fire *AJAX request* on slider *change* event (when slider value has changed). You can see slider demo at http://jscontrolstags.sourceforge.net/demo/slider/slider.html. But for extends it, I had to update slider.js to avoid slider was a class. Is it possible to have a BaseSlider and Slider in the scriptaculous distribution, like this : => BaseSlider Control.BaseSlider = function() {}; Control.BaseSlider .prototype = { baseInitialize:function(handle, track, options) { } ... scriptaculous slider javascript => implementation of BaseSlider Control.Slider = Class.create(); Control.Slider.prototype = Object.extend(new Control.BaseSlider(), { initialize: function((handle, track, options) { this.baseInitialize(handle, track, options); } }); With this technic, we can easily extends BaseSlider. So for my use case, I can do : JSControlsTags.Slider = Class.create(); JSControlsTags.Slider.prototype = Object.extend(new Control.BaseSlider(), { initialize: function((handle, track, options) { this.baseInitialize(handle, track, options); } ... other features }); Regards Angelo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---