Many Thanks for the answers, I take a look. (I would prefer an ajax-answer in my current application because that wouldn&#39;t introduce the necessarity to handle a <i>special case.)</i><br><br><div class="gmail_quote">On Thu, Oct 15, 2009 at 6:52 PM, Julian Fitzell <span dir="ltr">&lt;<a href="mailto:jfitzell@gmail.com">jfitzell@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Is there an advantage to that approach over just using a normal callback?<br>
<font color="#888888"><br>
Julian<br>
</font><div><div></div><div class="h5"><br>
On Thu, Oct 15, 2009 at 5:32 AM, Karsten &lt;<a href="mailto:karsten@heeg.de">karsten@heeg.de</a>&gt; wrote:<br>
&gt; Hi Richard,<br>
&gt;<br>
&gt; you can&#39;t do that with Ajax easily. The problem is that during an AJAX<br>
&gt; callback you&#39;re actually rendering and not in the normal callback phase.<br>
&gt; You could however register a callback that does the answer and send<br>
&gt; Javascript back to the browser to make the browser jump to the callback&#39;s<br>
&gt; url. However, that&#39;s a bit tricky :-)<br>
&gt;<br>
&gt; Kind Regards<br>
&gt; Karsten<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Am 15.10.09 14:23, schrieb Richard Durr:<br>
&gt;<br>
&gt; Hello :)<br>
&gt; For simplification, let&#39;s say I have two Components, Component1 and<br>
&gt; Component2, with the following methods:<br>
&gt; Component1&gt;&gt;renderContentOn: html<br>
&gt; html heading: &#39;Component1&#39;.<br>
&gt; html anchor<br>
&gt; callback: [self call: Component2 new];<br>
&gt; with: &#39;Call Component 2&#39;<br>
&gt; Component2&gt;&gt;renderContentOn: html<br>
&gt; html heading: &#39;Component2&#39;.<br>
&gt; html anchor<br>
&gt; callback: [self answer.];<br>
&gt; with: &#39;Answer&#39;.<br>
&gt; html anchor<br>
&gt; url: &#39;#&#39;;<br>
&gt; onClick: (html jQuery ajax callback: [self answer.]);<br>
&gt; with: &#39;Answer using AJAX&#39;<br>
&gt; When I click on the Answer using AJAX link Component2 answers but oviously<br>
&gt; the page stays the same, even when I reload and does not reflect the new<br>
&gt; state of the application where Component2 has answered. How can I<br>
&gt; re-synchronize server side and client side after this situation occured such<br>
&gt; that the page reflects the new state, where Component2 has answered?<br>
&gt; RD<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Karsten Kusche - Dipl. Inf. - <a href="mailto:karsten@heeg.de">karsten@heeg.de</a><br>
&gt; Georg Heeg eK - Köthen<br>
&gt; Handelsregister: Amtsgericht Dortmund A 12812<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">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>