views:

69

answers:

2

Hello, I was wondering if anyone had some code, or knew of a place that has code for creating a double handled slider. (EX. Kayak application filter results time, has a slider with thumbs on both ends to create a range.) I am looking to do something similar using a double slider to search for a range of ages on a person array.

Any help would be great!

A: 

I created a double slider and posted it on GitHub.

Blog post: http://dev.doukasd.com/2010/08/double-slider/

GitHub page: http://github.com/doukasd/DoubleSlider

Let me know how it works for you.

Dimitris
I ended up creating my own as well, but i tested yours out.I can only drag for a few pixels then the thumb locks up and i have to retouch it and drag a few more pixels.
Matt
Yes that's because the drag handlers are too small. If you resize them you don't get this issue. Of course the proper solution would be to latch the finger until you release it. I'll add that in the to-do list :)
Dimitris
A: 

Hey, I wrote one and posted it to git hub, too. Wish I'd seen Dimitris' earlier!

http://github.com/cmezak/CMRangeSlider

CharlieMezak