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 4321682
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T08:46:37+00:00 2026-05-21T08:46:37+00:00

I have to create a dual-thumb slider using the YUI 3 libraries. A single

  • 0

I have to create a dual-thumb slider using the YUI 3 libraries. A single thumb slider exists, so I hope I can extend the widget to include a second thumb.

However, while I can do some basic Javascript programming, this is a level above and I don’t even know how to start. I have tried for weeks to outsource this project, and haven’t found anyone willing or capable, so it looks like it is up to me and my noob Javascript skills to solve this.

I have been trying to find some kind of tutorial, but no luck there either. Every time I look for how to build a “slider” from scratch (which I figure will give me some starting points), I get instructions on image galleries that scroll from side to side.

All I know right now is that to make an extension to the YUI library, I need to use this code:

YUI.add('gallery-dual-slider', function (Y) { /* custom code goes here */ }, '0.0.1', { requires: ['dd-drag'] });

And I’m totally stuck after that. I assume that I need to somehow render a div onto the “rail”, and then make that div clickable and draggable…? Maybe?

Can someone give me a link to the tutorial or maybe a pointer to how I do this?

  • 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-21T08:46:38+00:00Added an answer on May 21, 2026 at 8:46 am

    The structure of what should go in the YUI.add(…) module function is described in the Widget user guide and examples. As to the particular implementation of a Dual/Multi-thumb slider, I would suggest:

    1. Start with a renderUI that creates a rail span containing two thumb spans (see the CONTENT_TEMPLATE and rendering support methods for Y.Slider in the source).
    2. Give each of these elements class names like yui3-dualslider-rail and yui3-dualslider-thumb-l or -r and apply some basic styling such as dimensions and color so you have some visual feedback of progress.
    3. In the bindUI, create a Y.DD.Drag instance for each of the two thumb spans, and plug them each with the Y.Plugin.DragConstrain (double check the plugin name in the Slider source). This should result in two draggable thumbs on a shared rail.
    4. See the value-range.js in the Slider source to reference adding attributes min and max and value. It’s up to you how you want to store/report the value(s) for the Dual Slider. For example, you could keep a single attribute “value” or “values” that held an array, or “value” might contain the delta between two other separate attributes, say “minValue” and “maxValue”. There are other ways to skin that cat, too.
    5. Bring you progress and questions to #yui to help proceed from there.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a sequence : CREATE SEQUENCE test_seq START WITH 10000001 INCREMENT BY 1;
I have this function: CREATE OR REPLACE FUNCTION CREATE_AIRSPACE_AVAILABILITY_RECORD (cur_user VARCHAR, start_time VARCHAR, start_date
My company is building an ASP.NET HR application and we have decided to create
We have a need to create a private key that is seeded from 2
I have Oracle 10gR2. I am trying to create autoincrement trigger. Here is the
I have some XML tagged string as follows. <Processor>AMD Athlon(tm) 64 X2 Dual Core
I am new to MySQL coming from Oracle. I have a requirement to create
I have a table called user_logins which tracks user logins into the system. It
I am trying to create a graphical spectrum analyzer in python. I am currently
Inside of a trigger I'm trying to loop over all columns on a table

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.