[Seaside] onClick vs callback
tomas.blazej at gmail.com
Thu Feb 7 11:55:56 UTC 2008
Thank you, "asynchronous: false" worked!
I also found that this happened only in firefox, in IE it works even without
setting it to behave synchronously..
2008/2/7, Lukas Renggli <renggli at gmail.com>:
> This is AJAX and the A is for asynchronous. This means the evaluator
> will return immediately after having set off a request in a background
> thread. If you change to a different page right away, the background
> request is aborted/ignored.
> > only if I call "return: false" for the evaluator. But in this case, the
> > callback of the button is not run :(
> "return: false" tells the browser *not to perform* the callback.
> > "return: false" with triggerForm(Element): doesn't work.. Is the answer
> > any other problem..?
> You can tell your evaluator not to be asynchronous using
> "asynchronous: false". However consider the comment for this method:
> "Determines whether XMLHttpRequest is used asynchronously or not.
> Since synchronous usage is rather unsettling, and usually bad taste,
> you should avoid changing this. Seriously."
> Lukas Renggli
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside