Many Thanks for the answers, I take a look. (I would prefer an ajax-answer in my current application because that wouldn'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"><<a href="mailto:jfitzell@gmail.com">jfitzell@gmail.com</a>></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 <<a href="mailto:karsten@heeg.de">karsten@heeg.de</a>> wrote:<br>
> Hi Richard,<br>
><br>
> you can't do that with Ajax easily. The problem is that during an AJAX<br>
> 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<br>
> Javascript back to the browser to make the browser jump to the callback's<br>
> 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:<br>
><br>
> Hello :)<br>
> For simplification, let's say I have two Components, Component1 and<br>
> Component2, with the following methods:<br>
> Component1>>renderContentOn: html<br>
> html heading: 'Component1'.<br>
> html anchor<br>
> callback: [self call: Component2 new];<br>
> with: 'Call Component 2'<br>
> Component2>>renderContentOn: html<br>
> html heading: 'Component2'.<br>
> html anchor<br>
> callback: [self answer.];<br>
> with: 'Answer'.<br>
> html anchor<br>
> url: '#';<br>
> onClick: (html jQuery ajax callback: [self answer.]);<br>
> with: 'Answer using AJAX'<br>
> When I click on the Answer using AJAX link Component2 answers but oviously<br>
> the page stays the same, even when I reload and does not reflect the new<br>
> state of the application where Component2 has answered. How can I<br>
> re-synchronize server side and client side after this situation occured such<br>
> that the page reflects the new state, where Component2 has answered?<br>
> RD<br>
><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>
><br>
><br>
> --<br>
> Karsten Kusche - Dipl. Inf. - <a href="mailto:karsten@heeg.de">karsten@heeg.de</a><br>
> Georg Heeg eK - Köthen<br>
> Handelsregister: Amtsgericht Dortmund A 12812<br>
><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>
><br>
><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>