<!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 text="#000000" bgcolor="#ffffff">
Hi Richard,<br>
<br>
you can't do that with Ajax easily. The problem is that during an AJAX
callback you're actually rendering and not in the normal callback phase.<br>
You could however register a callback that does the answer and send
Javascript back to the browser to make the browser jump to the
callback's url. However, that's a bit tricky :-)<br>
<br>
Kind Regards<br>
Karsten<br>
<br>
<br>
<br>
Am 15.10.09 14:23, schrieb Richard Durr:
<blockquote
 cite="mid:6fcb8b1b0910150523h6b0556cfodc87a6d57504b7b9@mail.gmail.com"
 type="cite">
  <div>Hello :)</div>
  <div><br>
  </div>
For simplification, let's say I have two Components,&nbsp;Component1 and
Component2, with the following methods:
  <div><br>
  <div>
  <div>Component1&gt;&gt;renderContentOn: html</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>html
heading: 'Component1'.</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>html
anchor</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>callback:
[self call: Component2 new];</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>with:
'Call Component 2'</div>
  <div><br>
  </div>
  <div>Component2&gt;&gt;renderContentOn: html</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>html
heading: 'Component2'.</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>html
anchor</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>callback:
[self answer.];</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>with:
'Answer'.</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>html
anchor</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>url:
'#';</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>onClick:
(html jQuery ajax callback: [self answer.]);</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>with:
'Answer using AJAX'</div>
  <div><br>
  </div>
  <div>When I click on the Answer using AJAX link Component2 answers
but oviously the page stays the same, even when I reload and does not
reflect the new state of the application where Component2 has answered.
How can I re-synchronize server side and client side after this
situation occured such that the page reflects the new state, where
Component2 has answered?&nbsp;</div>
  <div><br>
  </div>
  <div>RD</div>
  </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>
<pre class="moz-signature" cols="72">-- 
Karsten Kusche - Dipl. Inf. - <a class="moz-txt-link-abbreviated" href="mailto:karsten@heeg.de">karsten@heeg.de</a>
Georg Heeg eK - K&ouml;then
Handelsregister: Amtsgericht Dortmund A 12812 </pre>
</body>
</html>