View Full Version : Self-adjusting slider for jQuery (Mobile)
01-26-2013, 07:26 PM
Edit: I have removed this because afterall it was simply too bugy.
01-27-2013, 08:16 AM
In my app users need to enter a number defining for how many points they want to play. A slider is a nice way to do this, but always has a maximum value – so what if the user wants to enter a number higher than that? Setting an extremely high max value will make it very hard to set the slider exactly.
best practice is to use sliders to adjust a number in a plain textbox, much like the input's list attrib suggests defaults.
this ensures that the value can be set (to any number) even if the slider cannot render for some reason (old browser, no js, etc).
I'm not saying there's anything wrong with the script, but it should be used alongside even a small <input> that has the final say on what value is used.
01-27-2013, 11:08 AM
Did you even look at the demo? You can just as well change the value manually in the input field. But with the normal jQuery (Mobile) slider even entering the number in the input field is limited to the max value. In my slider you can both go higher by dragging the slider to the edge or changing the value in the input field.
01-27-2013, 03:09 PM
I have removed it afterall now because after some more testing it turned out to be too buggy.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.