<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    beSubmitOnChange;&nbsp; doesn't work, but html submitButton with:
    'lookup'.&nbsp; does, thanks.<br>
    <br>
    <br>
    Its working, but it would be more elegant if it used
    beSubmitOnChange. <br>
    <br>
    <br>
    Still missing some syntax thing apparently.<br>
    ==================<br>
    html form:[<br>
    &nbsp;&nbsp;&nbsp; html text: 'source code: '.<br>
    &nbsp;&nbsp;&nbsp; html select<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; list:&nbsp; (self class selectors);<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; selected: self codeSelector ;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; beSubmitOnChange;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; callback: [:value | self codeSelector: value ].<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "html submitButton with: 'lookup'."<br>
    &nbsp;&nbsp;&nbsp; html break.<br>
    &nbsp;&nbsp;&nbsp; html textArea<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; value: (self class sourceCodeAt: self codeSelector);<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rows: 30;<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; columns: 60.<br>
    ]<br>
    ==================<br>
    <br>
    <br>
    On 9/10/10 4:57 AM, Nick Ager wrote:
    <blockquote
      cite="mid:AANLkTimf+QgW80ogTVeNfTXRyWufcYZokGSeXtWAVgej@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <div>Hi Lawson,</div>
        <div>&nbsp;</div>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">Do you expect it to be called on change or
          on form submit? If the<br>
          former, you need #beSubmitOnChange (or use proper JS library
          to wire<br>
          this event), if the latter, please post a complete example of
          a form.<br>
          <br>
          <div>
            <div class="h5"><br>
              &nbsp; &nbsp; html select<br>
              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list: &nbsp;(self class selectors);<br>
              &nbsp; &nbsp; &nbsp; &nbsp; selected: #renderContentOn: ;<br>
              &nbsp; &nbsp; &nbsp; &nbsp; callback: [:value | self createText: value &nbsp; &nbsp; ].<br>
              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;html break.<br>
            </div>
          </div>
        </blockquote>
        <div><br>
        </div>
        As Boris says, your callback will only be evalulated when the
        form is submitted. So you need to add a form and a submit button
        or a call to #beSubmitOnChange. Something like:</div>
      <div class="gmail_quote"><br>
      </div>
      <div class="gmail_quote">
        <div class="gmail_quote">html form:[</div>
        <div class="gmail_quote">&nbsp;&nbsp; html select</div>
        <div class="gmail_quote">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list: &nbsp;(self class
          selectors);</div>
        <div class="gmail_quote">
          &nbsp;&nbsp; &nbsp; &nbsp; selected: #renderContentOn: ;</div>
        <div class="gmail_quote"><span class="Apple-tab-span"
            style="white-space: pre;"> </span>beSubmitOnChange;</div>
        <div class="gmail_quote">&nbsp;&nbsp; &nbsp; &nbsp; callback: [:value | self halt ].</div>
        <div class="gmail_quote">].</div>
        <div class="gmail_quote"><br>
        </div>
        <div class="gmail_quote">or instead of&nbsp;#beSubmitOnChange&nbsp;use:</div>
        <div class="gmail_quote"><br>
        </div>
        <div class="gmail_quote">html submitButton with: 'lookup'.</div>
        <div class="gmail_quote"><br>
        </div>
        <div class="gmail_quote">inside the form</div>
        <div class="gmail_quote"><br>
        </div>
        <div class="gmail_quote">Nick</div>
        <div>&nbsp;</div>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>