<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thank you so far,<br>
    <br>
    the nick ager extension, sounds good, but I am working on Dolphin,
    so I first have to implement it in Dolphin. <br>
    Another problem with dolphin is, the call: method does not work...
    so I control my components with <br>
    <i>show: something onAnswer: [show: something onAnswer:[...]]</i>.
    It is the only way it works with dolphin as I know.<br>
    <br>
    What I tried is to change the value of a variable with ajax&nbsp; in the
    dialog and then refresh the component with javascript. <br>
    I have this code at the beginning of the renderContentOn: <br>
    <small><i>html form: <br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [self variable<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ifTrue: <br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [html XXXX callback: <br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [self answer: self soemthing]]].</i></small><br>
    <br>
    Do you have maybe an idea, what I can insert for XXXX to create an
    event, to trigger the callback&nbsp; without an actual user interaction?<br>
    <br>
    Thank you guys!<br>
    <br>
    Am 15.03.2012 15:25, schrieb Bany, Michel:
    <blockquote
      cite="mid:74996DB2A7D4F849A732A31320BACECE038865C9@im04.cincom.com"
      type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <style>.hmmessage P {
        PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-FAMILY: Tahoma; FONT-SIZE: 10pt
}
</style>
      <meta name="GENERATOR" content="MSHTML 8.00.6001.19190">
      <div dir="ltr" align="left"><font color="#000080" face="Trebuchet
          MS"><span class="846431714-15032012">FWIW, we have been
            successfully using the JQuery extensions from Nick Ager
            (JQuery-Extensions-NickAger.2.mcz) in VisualWorks and I
            believe it would do what you are after. It allows you to
            "call" a component in a JQuery dialog&nbsp;and get a response
            object from the component when the dialog closes. Works a
            bit like&nbsp;the now old-fashioned&nbsp;#lightbox: method.</span></font></div>
      <div dir="ltr" align="left"><font color="#000080" face="Trebuchet
          MS"><span class="846431714-15032012">&nbsp;</span></font></div>
      <div dir="ltr" align="left"><font color="#000080" face="Trebuchet
          MS"><span class="846431714-15032012"></span></font>&nbsp;</div>
      <br>
      <blockquote style="BORDER-LEFT: #000080 2px solid; PADDING-LEFT:
        5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" dir="ltr">
        <div dir="ltr" class="OutlookMessageHeader" align="left"
          lang="en-us">
          <hr tabindex="-1"> <font face="Tahoma"><b>From:</b>
            <a class="moz-txt-link-abbreviated" href="mailto:seaside-bounces@lists.squeakfoundation.org">seaside-bounces@lists.squeakfoundation.org</a>
            [<a class="moz-txt-link-freetext" href="mailto:seaside-bounces@lists.squeakfoundation.org">mailto:seaside-bounces@lists.squeakfoundation.org</a>] <b>On
              Behalf Of </b>Robert Sirois<br>
            <b>Sent:</b> jeudi, 15. mars 2012 15:14<br>
            <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
            <b>Subject:</b> RE: [Seaside] answer: and jQuery<br>
          </font><br>
        </div>
        <div dir="ltr">Ajax is asynchronous. In Seaside's case, it is
          independent of the regular call/answer continuation stack. I
          can't remember if it works or not, but if you reload the page,
          has your component answered after firing the ajax call with
          #answer?<br>
          <br>
          RS<br>
          <br>
          <div>
            <hr id="stopSpelling"> Date: Thu, 15 Mar 2012 08:59:41 +0100<br>
            From: <a class="moz-txt-link-abbreviated" href="mailto:malte.grunwald@googlemail.com">malte.grunwald@googlemail.com</a><br>
            To: <a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
            Subject: [Seaside] answer: and jQuery<br>
            <br>
            <meta name="Generator" content="Microsoft SafeHTML">
            Hello everybody.<br>
            <br>
            My problem: <br>
            <br>
            I&nbsp; am working with a JQDialog and when the "okay" button is
            clicked, I want to use a <i>callback:</i> and <i>answer:</i>
            to get back to the <i>go </i>method in my Task class.<br>
            <br>
            Example:<br>
            <small><br>
              <i>renderOptionsOn: html id: anIdString width: anInteger <br>
                &nbsp;&nbsp;&nbsp; (html div)<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; id: anIdString;<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; script: (((html jQuery id: anIdString) dialog)<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; title: 'test';<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; autoOpen: false;<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; modal: true;<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; width: anInteger;<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; height: 'auto';<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; resizable: false;<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; addButton: 'Okay'<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; do: (html jQuery ajax script: <br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [:s | <br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; s<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;&lt; (s
                jQuery id: anIdString , 'form') serialize;<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;&lt; (s
                jQuery id: #Settings) dialog close;<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;&lt; (s
                jQuery ajax callback: [self answer: self something])]);<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; addButton: (self textAt: #CancelTx)
                do: html jQuery new dialog close);<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: <br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [self <br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; renderInputsOn: html<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; commands: self settings<br>
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; id: anIdString,'test']</i><br>
            </small><br>
            I read a comment of Lukas Renggli from 2010, it says it is
            not possible to <i>answer: </i>from jQuery is this still
            up to date?<br>
            Does anyone have an idea how I can solve the problem?<br>
            <br>
            Thank you!<br>
            <br>
            Regards<br>
            <br>
            _______________________________________________ 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></div>
        </div>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>