Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8897779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:26:10+00:00 2026-06-15T00:26:10+00:00

I have a similar design goal to this StackOverflow question about adding a label

  • 0

I have a similar design goal to this StackOverflow question about adding a label to a JQuery slider that shows the current value of the slider while the user is dragging the slider. The problem I have with those answers is that the slide event triggers when the slider is about to move to the new location, and provides a ui object with the new value. Well and good, but the only position of the slider that I can find a way to get hold of is the old, not new, location. With enough steps on the slider this isn’t really noticeable, but if I reduce the number of steps you can see that the label appears next to where the slide handle used to be.

I’ve updated the jsFiddle from the other question to illustrate the problem: http://jsfiddle.net/mcuf6/2/

So, tl;dr: how can I avoid lag in drawing a slider label while the user is dragging the handle, by getting the final location of the slider handle during a slide event?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:26:12+00:00Added an answer on June 15, 2026 at 12:26 am

    EDIT:
    This little hack should do exactly what you need

    $(document).ready(function() {
        $("#slider").slider({
            value:0,
            min: 0,
            max: 5,
            step: 1,
            range: 'min',
            slide: function( event, ui ) {
                var that = $(this);
                setTimeout(function() {
                var offsetLeft = that.find(".ui-slider-handle").offset().left;
                $( "#sliderValue" )
                    .val( ui.value )
                    .css({
                        "position": "absolute",
                        "left": offsetLeft
                    });
            },1);
            }
        });
    });​
    

    http://jsfiddle.net/mcuf6/6/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is more of a design question that others may have had similar experience
i have design similar to below given link. when i open this link and
I got the following problem. I have a design similar to this jsfiddle: http://jsfiddle.net/k3EUx/
So I have 2 functions that both have similar arguments void example(int a, int
I know there are other questions that have similar issues, but I have read
I have 5 tables (tbl1, tbl2, tbl3, tbl4, tbl5) that all have similar columns,
I am maintaining several Perl scripts that all have similar code blocks for different
i have a similar issue as espoused in How to design a product table
I have a heavily templated TabControl - similar in design to the Scrollable Tab
Let's assume that I have this scenario: I have got 2 repositories of information,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.