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

  • SEARCH
  • Home
  • 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 6809401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:04:56+00:00 2026-05-26T20:04:56+00:00

Essentially what I’ve got going is a single-handle jQuery UI slider for a bunch

  • 0

Essentially what I’ve got going is a single-handle jQuery UI slider for a bunch of dates. The date range chosen is ALWAYS two weeks. What I’d like to do is just show a range (the range doesn’t have to be functional – just displayed) from the start date of the two week range (which is the date the handle resides on), two weeks forward. This range is fixed.

For example, if the handle is on Jan 1st, I’d like a range to extend to Jan 14th. If the slider moves to Jan 3rd, I’d like the range to move with it to end on the 16th.

Does anyone know if this is possible?

  • 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-05-26T20:04:57+00:00Added an answer on May 26, 2026 at 8:04 pm

    The jQuery UI slider wasn’t designed with that in mind, but you can handle the slide and stop events of the slider yourself to reset the range values however you like.

    http://docs.jquery.com/UI/Slider

    This doesn’t address all of your requirements by any means, but it’s a start.

    $('#myslider').slider({
        min:1,
        max:31,
        values:[1, 14],
        step:1,
        range:true,
        slide:function(event, ui) {
            var s = $(this);
            var values = s.slider('option', 'values');
    
            if(ui.handle.nextElementSibling == null) // max slider
                values[0] = values[1] - 14;
            else // min slider
                values[1] = values[0] + 14;
    
            s.slider('option', 'values', values);
        },
        stop:function() {
            var s = $(this);
            var min = s.slider('option', 'min'),
                max = s.slider('option', 'max'),
                values = s.slider('option', 'values');
    
            if(values[0] <= min)
                values = [min, min + 14];
            if(values[1] >= max)
                values = [max - 14, max];
    
            s.slider('option', 'values', values);
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Essentially, what I want to do (in DirectX) is to take two partially-transparent images
Essentially I've got a table holding user data, all of which is AES encrypted
Essentially, my question is this: There are two ways that I have experienced setting
Essentially I want to know if in VB.NET 2005 if using a sqlcommand and
Essentially the only thing I can deploy to my deployment machine is a JAR
Essentially, I have to get a flat file into a database. The flat files
Essentially I need a count of each Entries Comments: SELECT e.*, COUNT(c.id) as comments
Essentially I'd like to know just how compatible are the iPhone and the iPod
Essentially I have a method of a class called killProgram, which is intended to
Essentially I'm wondering if the following can be done in Ruby. So for example:

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.