Hello,
I am new to all this but would like to put the changing value of the
pointer into a variable - how do I do this? The snippet of code below
works ...
Thanks
Geoff
<p><strong>Standard horizontal slider</strong>
<div id="track1" style="width:200px;background-color:#aaa;height:
5px;">
<div id="handle1" style="width:5px;height:10px;background-
color:#f00;cursor:move;"> </div>
</div>
<div id="debug1" style="padding-top: 5px;"></div></p>
<p><strong>Slider with predefined values [1,2,3,4,5,6,7,8,9,10]</
strong>
<div id="track3" style="width:200px;background-color:#aaa;height:
5px;">
<div id="handle3" style="width:5px;height:10px;background-
color:#f00;cursor:move;"> </div>
</div>
<div id="debug3" style="padding-top: 5px;"></div></p>
<p>
<script type="text/javascript" language="javascript">
// <![CDATA[
new Control.Slider('track1','handle1',{
onSlide:function(v){$('debug1').innerHTML='slide: '+v},
onChange:function(v){$('debug1').innerHTML='changed! '+v}});
new Control.Slider('handle3','track3',{range:$R(1,10),
values:[1,2,3,4,5,6,7,8,9,10],
onSlide:function(v){$('debug3').innerHTML='slide: '+v},
onChange:function(v){$('debug3').innerHTML='changed! '+v}});
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---