Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jan 2013
    Location
    Germany
    Posts
    578
    Thanks
    4
    Thanked 77 Times in 77 Posts

    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 03:08 PM.

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,460
    Thanks
    11
    Thanked 600 Times in 580 Posts
    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 2014/10/20)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.3, IE11:9.2, IE9:2.7, IE10:2.6, FF:16.8, CH:47.5, SF:7.8, NON-MOUSE:37%

  • #3
    Regular Coder
    Join Date
    Jan 2013
    Location
    Germany
    Posts
    578
    Thanks
    4
    Thanked 77 Times in 77 Posts
    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 11:25 AM.

  • #4
    Regular Coder
    Join Date
    Jan 2013
    Location
    Germany
    Posts
    578
    Thanks
    4
    Thanked 77 Times in 77 Posts
    I have removed it afterall now because after some more testing it turned out to be too buggy.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •