Go Back   CodingForums.com > :: Client side development > JavaScript programming > Post a JavaScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-26-2013, 06:26 PM   PM User | #1
Airblader
Regular Coder

 
Join Date: Jan 2013
Location: Germany
Posts: 357
Thanks: 3
Thanked 43 Times in 43 Posts
Airblader can only hope to improve
Self-adjusting slider for jQuery (Mobile)

Edit: I have removed this because afterall it was simply too bugy.

Last edited by Airblader; 01-27-2013 at 02:08 PM..
Airblader is offline   Reply With Quote
Old 01-27-2013, 07:16 AM   PM User | #2
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,455
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
Quote:
Originally Posted by Airblader View Post
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.
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%
rnd me is offline   Reply With Quote
Old 01-27-2013, 10:08 AM   PM User | #3
Airblader
Regular Coder

 
Join Date: Jan 2013
Location: Germany
Posts: 357
Thanks: 3
Thanked 43 Times in 43 Posts
Airblader can only hope to improve
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.

Last edited by Airblader; 01-27-2013 at 10:25 AM..
Airblader is offline   Reply With Quote
Old 01-27-2013, 02:09 PM   PM User | #4
Airblader
Regular Coder

 
Join Date: Jan 2013
Location: Germany
Posts: 357
Thanks: 3
Thanked 43 Times in 43 Posts
Airblader can only hope to improve
I have removed it afterall now because after some more testing it turned out to be too buggy.
Airblader is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:47 AM.


Advertisement
Log in to turn off these ads.