473,395 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how to focus dojo slider to a particular value and then disabling dojo slider so that

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.
Expand|Select|Wrap|Line Numbers
  1.     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2.     <html dir="ltr">
  3.  
  4.         <head>
  5.             <style type="text/css">
  6.                 body, html { font-family:helvetica,arial,sans-serif; font-size:90%; }
  7.             </style>
  8.             <script src="../cmic/dojo/dojo/dojo.js"
  9.             djConfig="parseOnLoad: true">
  10.             </script>
  11.             <script type="text/javascript">
  12.                 dojo.require("dijit.form.Slider");
  13.                 dojo.require("dijit.form.TextBox"); // this we only include to make the textinput look prettier
  14.                 dojo.addOnLoad(function() {
  15.  
  16.                     var slider = new dijit.form.HorizontalSlider({
  17.                         name: "slider",
  18.                         value: 0,
  19.                         minimum: 0,
  20.                         maximum: 10,
  21.                         intermediateChanges: true,
  22.                         style: "width:700px;",
  23.                         onChange: function(value) {
  24.                          dojo.byId("sliderValue").value = value;
  25.                         }
  26.                     },
  27.                     "slider");
  28.                 });
  29.             </script>
  30.             <link rel="stylesheet" type="text/css" href="../cmic/dojo/dijit/themes/claro/claro.css"
  31.             />
  32.         </head>
  33.  
  34.         <body class=" claro ">
  35.  
  36.             <div id="slider"  intermediateChanges="true" showButtons="false" style="width:400px;color:#606060;">
  37.             <ol dojoType="dijit.form.HorizontalRuleLabels" container="topDecoration"
  38.                 style="height:1.5em;color:#585858;font-size:75%;color:gray;">
  39.             <li>0
  40.                     </li>
  41.                  <li>
  42.                         2
  43.                     </li>
  44.                     <li>
  45.                         4
  46.                     </li>
  47.                     <li>
  48.                         6
  49.                     </li>
  50.                  <li>
  51.                         8
  52.                     </li>
  53.                     <li>10
  54.                     </li>
  55.                 </ol>
  56.  
  57.  
  58.  
  59.             <ol dojoType="dijit.form.HorizontalRuleLabels" container="topDecoration"
  60.                 style="height:1.5em;font-size:90%;color:#606060;margin:-1em 0px 0px 7.00em;">
  61.  
  62.                    <li>
  63.                         Outstanding
  64.                     </li>
  65.                     <li>
  66.                         Highly effective
  67.                     </li>
  68.                     <li>
  69.                         &nbsp&nbspEffective
  70.                     </li>
  71.                     <li>
  72.                            &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbspNeeds Improvement
  73.                     </li>
  74.                     <li>
  75.                           &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
  76.                     </li>
  77.                    <li>
  78.  
  79.                     </li></ol>
  80.  
  81.  
  82.         </div>
  83.             <p>
  84.                 <input type="text" id="sliderValue" dojoType="dijit.form.TextBox" />
  85.             </p>
  86.             <script type="text/javascript">
  87.                 dojo.addOnLoad(function() {
  88.                     if (document.pub) {
  89.                         document.pub();
  90.                     }
  91.                 });
  92.             </script>
  93.         </body>
  94.  
  95.     </html>
May 5 '11 #1
0 1285

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Novice | last post by:
Hi all, I'm having some trouble with a XPath query I would like to make I have the following simplified XML <A><B><C name="Test"></C><C name="Test2"></C></B><B><C name="Test"></C></B></A I...
6
by: Abhi poddar | last post by:
Hi Friends, In a window form I have a datagrid and certain action of user I want to select and set a focus to a particular row. I am to select a particular row using dataGrid1.Select(int row), but...
3
by: Saurabh Sharma | last post by:
Hi I found a particular process that is running on my machine. I have th eprocess ID for that how to set Focus to that Process Regards Saurabh
3
by: sailu | last post by:
Hi, Anyone knows how can i set the focus to a particular cell in DataGrid. Thanks, Sailaja.
6
by: lwoods | last post by:
I want to be able to get the present year in one statement. I know that I can do it this way: $y = getdate(); echo 'year='.$y; But, I want to do something like: echo 'year='.getdate(); ...
2
by: Paul Remblance | last post by:
I am trying to use the bindingnavigator addnewitem button to place the focus on the first cell in the newrow row. I have disabled the default action and I am using the bindingnavigatoraddnewitem...
5
by: svaradan | last post by:
Hi I have an issue wherein when the RowLeave event is trigerred ina datagridview, I want to set the focus back to the row where the validation failed. But the cell focus goes to the cell i...
6
by: Lisa | last post by:
I am reading in data from a text file. I want to enter each value on the line into a list and retain the order of the elements. The number of elements and spacing between them varies, but a...
2
by: =?Utf-8?B?TXVja3k=?= | last post by:
I'm trying to check to see that all fields in a particular tab are filled in (this I do with the "Leave" event handler... the code checks whether any of the textboxes on that particular tab are...
0
by: Aravind555 | last post by:
Hi How to get particular value from inside html code of a existing internet explorer page from excel macro (navigate the page by using app activate or any other with out using web query but by...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.