Thank you, "asynchronous: false" 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 <<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> 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>> The problem is, that the javascript code from onClick seems to be executed<br>> only if I call "return: false" for the evaluator. But in this case, the<br>
> callback of the button is not run :(<br><br>"return: false" tells the browser *not to perform* the callback.<br><br>> "return: false" with triggerForm(Element): doesn't work.. Is the answer<br>
> evaluated before the javascript and then it doesn't make sense or is there<br>> any other problem..?<br><br>You can tell your evaluator not to be asynchronous using<br>"asynchronous: false". However consider the comment for this method:<br>
"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."<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>