| Range Slider |
| Written by Administrator | ||||||||||||||
| Friday, 05 June 2009 | ||||||||||||||
|
This is about how to build range slider, a slider with two handled value.
While browsing some ecommerce website for looking any inspiration for ecommerce projects, I found shopwiki.com website. This an ecommerce directory. You can buy almost everything sold by the traditional store here. The website navigator is easy to understand by user. It clear and simple, but effective. My next Project in the internet application class is to build list or table from SQL Server database with ADO.NET in ASP.NET. I have look the list in this website shown with this table style and listing style. And I think my student can do both of that style in their projects. Anyway, actually in this article I want to share about one interesting tool in this page . As you can see in the top right corner there are Filter panel like this : These 2 sliding bar is for filtering the list in more specific price range and color. Than I want to discover how to include these slider in our website. I have not yet found the code for the color slider, but I have found it for the price range slider. The price range slider called ‘two handled slider’ or ‘range slider’. While googling it I have found the first choice is with JQUERY UI. Yes it a very great range slider from provider with great collection of tools. But before using this collection I prefer to search the ‘lite’ one. And I found this script. This script use this javascript : yui-range-slide.js after download those 2 file, you can try this code: <html> <div id="mydiv">Price $1 to $100</div>
this is the display when you run the script.
The script show that we build slider with width 140 and height=20. With min value=0, and max value=100. First we set with setValue method for range 0 and 100 respectively.
Only registered users can write comments!
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved." |
||||||||||||||
| Last Updated ( Friday, 05 June 2009 ) | ||||||||||||||