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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:19:06+00:00 2026-05-26T02:19:06+00:00

I have a slider from 1 to 0.1. I set the minimum and maximum

  • 0

I have a slider from 1 to 0.1.
I set the minimum and maximum and slider calculates the interval between numbers.

But now i need to use a set of numbers between 1/1, 1/2, … to 1/9. (e.g. 1, 0.5, 0.33, 0.25, …)

How can i make that ?

<div id="slider1" data-dojo-type="dijit.form.HorizontalSlider"
        data-dojo-props='name:"horizontal1",
            onChange:function(val){ dojo.byId("slider1input").value=dojo.number.format(val); },

            maximum:1/9,
            minimum:1/1,
            showButtons:true,
            discreteValues:9,
            intermediateChanges:true,
            style:{width:"400px"}
            '>

demo

  • 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-26T02:19:06+00:00Added an answer on May 26, 2026 at 2:19 am

    Here is the modified example from the demo page:

    <div id='slider1'
     data-dojo-type='dijit.form.HorizontalSlider'
     data-dojo-props='name:"horizontal1",
                      onChange: function(val){ dojo.byId("slider1input").value = dojo.number.format( 1 / (10 - val) ); },
                      maximum: 9,
                      minimum: 1,
                      showButtons: true,
                      discreteValues: 9,
                      intermediateChanges: true,
                      style: {width:"400px"}'>
    
    <ol dojoType="dijit.form.HorizontalRuleLabels" container="topDecoration" style="height: 1.5em; font-size: 75%; color: gray;">
        <li>1/9</li>
        <li>1/8</li>
        <li>1/7</li>
        <li>1/6</li>
        <li>1/5</li>
        <li>1/4</li>
        <li>1/3</li>
        <li>1/2</li>
        <li>1</li>
    </ol>
    <div dojoType="dijit.form.HorizontalRule" container="bottomDecoration" count=9 style="height:5px;"></div>
    

    So the slider accepts integer numbers and then transforms them into your fractions, see onChange function.

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

Sidebar

Related Questions

I wish to have a slider similar to they use. http://www.koovs.com/apple-ipod Can anyone suggest
I have a slider with minimum value 0 and maximum value 1 . When
I have an slider animation but on clX.click event #close div hides before it
I have a slider I've made, the slider part works correctly, but I'm trying
I am running this coda-slider script from http://www.ndoherty.biz/ Not Everytime, but quite often on
I have a class derived from slider which uses a custom control template and
Using the Slider Jquery plugin from Egor Khmelev, I've managed to set the slider
In my application,I have to load volumedata from set of images (MRC images) and
I have the following code which I got from http://css-tricks.com/startstop-slider/ I have it all
I have the following code which I got from http://css-tricks.com/startstop-slider/ I would like to

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.