you are referencing DOM id label1, but not creating any DOM element with that id. you want<br><br>html textInput id: label1, value: ...<br><br><div class="gmail_quote">On Mon, Aug 30, 2010 at 3:10 PM, Lawson English <span dir="ltr">&lt;<a href="mailto:lenglish5@cox.net">lenglish5@cox.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Still not getting it, sorry. This still doesn&#39;t seem to do what I want:<br>
<br>
renderContentOn: html<br>
    | label1 |<div class="im"><br>
    self renderExplanationOn: html.<br>
<br>
    html form:<br>
    [<br>
    html text: &#39;slider value here: &#39;.<br></div>
    label1 := html nextId.<div class="im"><br>
    html textInput<br>
       value: self current;<br>
       callback: [ :value | self current: value ].<br>
   html div script:<br>
    (html jQuery new slider<br>
          value: self current;<br>
          onStop:<br>
            (html jQuery ajax<br>
             callback: [ :value | self current: value asNumber ]<br></div>
            value: (html jQuery this slider getValue)),<br>
         ((html jQuery id: label1)<div class="im"><br>
            value: html jQuery this slider getValue))<br></div><div class="im">
    ]<br>
<br>
<br>
On 8/28/10 3:31 PM, Julian Fitzell wrote:<br>
</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
The added code generates JS that gets the text field by id (&quot;html<br>
jQuery id: &#39;id-of-your-textfield&#39;&quot;) and sets its value (&quot;value:&quot;) to<br>
the value of the slider (&quot;html jQuery this slider getValue&quot;). Lukas is<br>
suggesting that you need to this as well as sending the value back to<br>
the smalltalk image. You can combine two JS actions using a comma so:<br>
<br>
html div script:<br>
    (html jQuery new slider<br>
       value: self current;<br>
       onStop:<br>
          (html jQuery ajax<br>
             callback: [ :value | self current: value asNumber ]<br>
             value: (html jQuery this slider getValue)) ,<br>
          ((html jQuery id: &#39;id-of-your-textfield)<br>
             value: html jQuery this slider getValue))<br>
<br>
Julian<br>
<br>
</blockquote>
<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">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>