If you only need this to work on new browsers, maybe you can get away with using HTML5's new input types: range and number.
Opera does some interesting stuff with input type number. http://skitch.com/dylanfm/dma2c/html5-presentation from http://slides.html5rocks.com/#slide21 It'll be easy enough to wrap some JS around this. Dylan On 9 July 2010 10:29, Dan Cheail <[email protected]> wrote: > Text boxes you get for free; dials are a poor UI choice for > mouse-controlled interfaces (imo). > > Did you look at the slider module from Scriptaculous? I've used it several > times and find it to be extremely easy to use (and engineered for callbacks, > not posting to servers...) > > http://wiki.github.com/madrobby/scriptaculous/slider > > > On Fri, Jul 9, 2010 at 9:50 AM, Korny Sietsma <[email protected]> wrote: > >> Hi - I'm throwing together a page with some Raphael-based graphs and I >> want to add some simple widgets to control the parameters used to draw the >> graphs - things like sliders, dials, simple text boxes to change numeric >> values, etc. >> >> This only needs to work on new browsers (no IE) - I'm wondering if anyone >> has any suggestions for where to get/build these widgets. >> Most of the libraries out there seem like overkill; they all feel the need >> to support old browsers, and they tend to assume you want to post the >> results as a form back to a server. >> I just want to call a javascript callback... >> >> I could build my own in Raphael, but that also seems like work; I'll do >> that if I have to, but I'm hoping someone has already done this for me! >> >> Suggestions? >> >> - Korny >> >> -- >> Kornelis Sietsma korny at my surname dot com >> kornys on twitter/fb/gtalk/gwave www.sietsma.com/korny >> "Every jumbled pile of person has a thinking part >> that wonders what the part that isn't thinking >> isn't thinking of" >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby or Rails Oceania" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<rails-oceania%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/rails-oceania?hl=en. >> > > > > -- > Dan Cheail > Big Geek, > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rails-oceania%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" 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/rails-oceania?hl=en.
