how to focus dojo slider to a particular value and then disabling dojo slider so that value not changes on clicking?

how to focus dojo slider to a particular value and then disabling dojo slider so that value not changes on clicking?

How to focus dojo slider to a particular value (say 2.5 )on the slider and then disabling dojo slider so that value not changes on clicking on the dojo slider?ie i want to focus dojo slider to a particular value and then make it disable.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html dir="ltr">

    <head>
        <style type="text/css">
            body, html { font-family:helvetica,arial,sans-serif; font-size:90%; }
        </style>
        <script src="../cmic/dojo/dojo/dojo.js"
        djConfig="parseOnLoad: true">
        </script>
        <script type="text/javascript">
            dojo.require("dijit.form.Slider");
            dojo.require("dijit.form.TextBox"); // this we only include to make the textinput look prettier
            dojo.addOnLoad(function() {

                var slider = new dijit.form.HorizontalSlider({
                    name: "slider",
                    value: 0,
                    minimum: 0,
                    maximum: 10,
                    intermediateChanges: true,
                    style: "width:700px;",
                    onChange: function(value) {
                     dojo.byId("sliderValue").value = value;
                    }
                },
                "slider");
            });
        </script>
        <link rel="stylesheet" type="text/css" href="../cmic/dojo/dijit/themes/claro/claro.css"
        />
    </head>

    <body class=" claro ">

        <div id="slider"  intermediateChanges="true" showButtons="false" style="width:400px;color:#606060;">
        <ol dojoType="dijit.form.HorizontalRuleLabels" container="topDecoration"
            style="height:1.5em;color:#585858;font-size:75%;color:gray;">
        <li>0
                </li>
             <li>
                    2
                </li>
                <li>
                    4
                </li>
                <li>
                    6
                </li>
             <li>
                    8
                </li>
                <li>10
                </li>
            </ol>



        <ol dojoType="dijit.form.HorizontalRuleLabels" container="topDecoration"
            style="height:1.5em;font-size:90%;color:#606060;margin:-1em 0px 0px 7.00em;">

               <li>
                    Outstanding
                </li>
                <li>
                    Highly effective
                </li>
                <li>
                    &nbsp&nbspEffective
                </li>
                <li>
                       &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbspNeeds Improvement
                </li>
                <li>
                      &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbspNot Acceptable
                </li>
               <li>

                </li></ol>


    </div>
        <p>
            <input type="text" id="sliderValue" dojoType="dijit.form.TextBox" />
        </p>
        <script type="text/javascript">
            dojo.addOnLoad(function() {
                if (document.pub) {
                    document.pub();
                }
            });
        </script>
    </body>

</html>
View Answers









Related Tutorials/Questions & Answers:
how to focus dojo slider to a particular value and then disabling dojo slider so that value not changes on clicking?
Dojo Slider
Advertisements
Dojo Slider
Dojo Slider
Reversing dojo slider to make it slide from right to left rather left to right as given
Slider in Flex4
Dojo
Dojo
DOJO, DOJO 1.0.2 tutorial, DOJO Tutorial
DOJO Tutorial
ModuleNotFoundError: No module named 'slider'
ModuleNotFoundError: No module named 'slider'
ModuleNotFoundError: No module named 'slider'
how to create a slider on jsp page n slider has values from 0-4
slider - Swing AWT
how to check particular value is avilable in hashmap - Java Beginners
DOJO - Ajax
How to add radio button value in a table for particular field?
dojo preview
Image slider in JQuery
Ajax Dojo Tutorial
Dojo: How MenuItem helps page redirction - Ajax
ModuleNotFoundError: No module named 'js.bootstrap_slider'
ModuleNotFoundError: No module named 'monocle_slider'
ModuleNotFoundError: No module named 'slider-task'
ModuleNotFoundError: No module named 'slider-task'
ModuleNotFoundError: No module named 'slider-task'
ModuleNotFoundError: No module named 'window-slider'
ModuleNotFoundError: No module named 'window-slider'
ModuleNotFoundError: No module named 'djangocms-slider'
ModuleNotFoundError: No module named 'js.bootstrap_slider'
dojo - Ajax
What is Dojo?
Vertical news slider using jquery
How to get the focus from a particular textarea for some action?
Changing 2D graph using slider.
iPhone Slider Example
how to change background color in dojo tab container - Framework
Install Dojo
Dojo Tutorial
ModuleNotFoundError: No module named 'djangocms-thumbnail-slider'
ModuleNotFoundError: No module named 'django-mp-slider'
ModuleNotFoundError: No module named 'wxpython-slider-bank-creator'
ModuleNotFoundError: No module named 'djangocms-complete-slider'
ModuleNotFoundError: No module named 'djangocms-slick-slider'
ModuleNotFoundError: No module named 'djangocms-slider-easy'
ModuleNotFoundError: No module named 'djangocms-slider-easy-uploadcare'
ModuleNotFoundError: No module named 'djangocms-thumbnail-slider'
ModuleNotFoundError: No module named 'django-garpix-slider'
ModuleNotFoundError: No module named 'django-hero-slider'

Ads