I really liked the functionality of the dojo spinner control example, so I went ahead and did my own. Demo and source here:
http://kendsnyder.com/sandbox/Spinner/demo.1.0.html It uses mousedown to allow continuous incrementing which speeds up over time. It also implements keydown to allow up and down arrow control while focused on the input. The trickiest part was accounting for a case that even the dojo example didn't address: keyup doesn't get fired on the up or down element if you make a drag action outside of the element. This is solved by attaching an additional mouseout event that also stops the incrementing. -- Ken Snyder --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
