Create a hidden form field and modify it's value onChange:
<form>
<input type="hidden" name="formfield" id="formfield" />
</form>
<script>
...
onChange: function(v){
$('changed').innerHTML = 'Changed Value : '+v;
$('formfield').value = v;
},
...
</script>
On Jul 27, 2:43 pm, autocat <[email protected]> wrote:
> js noob here... how do I pass aslider'schanged value into a
> querystring or form? I want to reload the page and use theslider's
> changed value to set image widths. This is thesliderscript I'm
> using:
>
> <script type="text/javascript">
> window.onload = function() {
> new Control.Slider('handle1' , 'track1',
> {
> range: $R(1,410),
> sliderValue: 100,
> onChange: function(v){
> $('changed').innerHTML = 'Changed Value : '+v;
> },
> onSlide: function(v) {
> $('sliding').innerHTML = 'Sliding Value: '+v;
> }
> } );
> new Control.Slider('handle2' , 'track2',
> {
> range: $R(75,410),
> axis:'vertical',
> sliderValue: 410,
> onChange: function(v){
> $('changed').innerHTML = 'Changed Value : '+v;
> },
> onSlide: function(v) {
> $('sliding').innerHTML = 'Sliding Value: '+v;
> }
> } );
>
> }
>
> </script>
>
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---