Thank you, &quot;asynchronous: false&quot; worked! <br><br>I also found that this happened only in firefox, in IE it works even without setting it to behave synchronously..<br><br>Tomas<br><br><div><span class="gmail_quote">2008/2/7, Lukas Renggli &lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; But I also need some javascript in onClick event generated by evaluator.<br><br>This is AJAX and the A is for asynchronous. This means the evaluator<br>will return immediately after having set off a request in a background<br>
thread. If you change to a different page right away, the background<br>request is aborted/ignored.<br><br>&gt; The problem is, that the javascript code from onClick seems to be executed<br>&gt; only if I call &quot;return: false&quot; for the evaluator. But in this case, the<br>
&gt; callback of the button is not run :(<br><br>&quot;return: false&quot; tells the browser *not to perform* the callback.<br><br>&gt; &quot;return: false&quot; with triggerForm(Element): doesn&#39;t work.. Is the answer<br>
&gt; evaluated before the javascript and then it doesn&#39;t make sense or is there<br>&gt; any other problem..?<br><br>You can tell your evaluator not to be asynchronous using<br>&quot;asynchronous: false&quot;. However consider the comment for this method:<br>
&quot;Determines whether XMLHttpRequest is used asynchronously or not.<br>Since synchronous usage is rather unsettling, and usually bad taste,<br>you should avoid changing this. Seriously.&quot;<br><br>Lukas<br><br>--<br>
Lukas Renggli<br><a href="http://www.lukas-renggli.ch">http://www.lukas-renggli.ch</a><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">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br></blockquote></div><br>