<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Georgia">Why not just make the original callback
      sufficiently generic that it can cope with the change?<br>
      <br>
    </font>html text: 'Choose Amount'.
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (html select)
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id: #prices;
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; callback: [:v | self doWhateverIsImportantNowWith: v];
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; list: #(30 50 60).
    <br>
    <br>
    Cheers,<br>
    Bob<br>
    <br>
    <div class="moz-cite-prefix">On 8/19/12 10:06 AM, squeakman wrote:<br>
    </div>
    <blockquote cite="mid:k0qrtl$qoi$1@ger.gmane.org" type="cite">Greetings
      List,
      <br>
      <br>
      I have a form with a text field and an html select with a list of
      choices.
      <br>
      <br>
      When the user exits the text field (onChange) I want to change the
      list of choices for the dropdown list.
      <br>
      <br>
      I can get the contents of the dropdown list to change but I cannot
      determine how to change the associated callback.
      <br>
      <br>
      Is there a way to replace not only the contents of the dropdown
      list but also its callback?
      <br>
      <br>
      Below is an extract of the code to show what I am trying to do.
      <br>
      <br>
      Thanks for any help you can provide,
      <br>
      <br>
      Frank
      <br>
      <br>
      <br>
      ----- start of code -----
      <br>
      <br>
      (html textInput)
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;callback: [:v | self textValue: v];
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;onChange: ((html scriptaculous updater)
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id: #prices;
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; triggerForm: fid;
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Attempt to replace callback"
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; callback:
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [:r |
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (r select)
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; callback: [:v | self amount: v];
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; list: #(15 25)].
      <br>
      <br>
      " The dropdown list"
      <br>
      html text: 'Choose Amount'.
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (html select)
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id: #prices;
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; callback: [:v | self amount: v];
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; list: #(30 50 60).
      <br>
      <br>
      _______________________________________________
      <br>
      seaside mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
      <br>
      <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>
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>