and if you wonder how to display the values of a range slider while you drag the gizmo, a snipped of my code:<br><br><span style="font-family: courier new,monospace;">html div script: (html jQuery new slider</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> values: (Array with: from with: to);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> range: true;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> min: 0;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> max: 100;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> step: 5;</span><span style="font-family: courier new,monospace;"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> onSlide: (JSFunction new</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> add: ((html jQuery id: fromId) value: (html jQuery this slider getValueAt: 0));</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> add: ((html jQuery id: toId) value: (html jQuery this slider getValueAt: 1));</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> yourself)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> ).</span><br><br>jquery in seaside is fun<br>
<br><div class="gmail_quote">On Fri, Aug 27, 2010 at 12:19 PM, Lukas Renggli <span dir="ltr"><<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 27 August 2010 11:34, Lawson English <<a href="mailto:lenglish5@cox.net">lenglish5@cox.net</a>> wrote:<br>
> I'm trying to connect the display of slider values to text input sorta like<br>
> the demos on the JQueryUI site, but I can't get the connection to go both<br>
> ways. Changing the value in the text field and pressing return will reset<br>
> the slider position, but changing the slider position doesn't update the<br>
> text field.<br>
<br>
</div>You don't tell it to update the text field.<br>
<div class="im"><br>
> MyTestSlider>>renderContentOn: html<br>
> self renderExplanationOn: html.<br>
> html form: [<br>
> html text: 'slider value here: '.<br>
> html textInput<br>
> value: self current;<br>
> callback: [ :value | self current: value ].<br>
> html div script: (html jQuery new slider<br>
> value: self current;<br>
> onStop: (html jQuery ajax<br>
> callback: [ :value | self current: value asNumber ]<br>
> value: (html jQuery this slider getValue))<br>
<br>
</div>Try to add something along the following lines to your onStop: event:<br>
<br>
, ((html jQuery id: 'id-of-your-textfield) value: html jQuery this<br>
slider getValue)<br>
<br>
Lukas<br>
<font color="#888888"><br>
--<br>
</font><div class="im">Lukas Renggli<br>
<a href="http://www.lukas-renggli.ch" target="_blank">www.lukas-renggli.ch</a><br>
_______________________________________________<br>
</div><div><div></div><div class="h5">seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br>