
Signature
http://www.hunlock.com -- Musings in Javascript, CSS.
$FA
> From my experience (which does not include Safari), a user's navigation
> requests will trump anything save for modal dialog boxes (alert, prompt,
[quoted text clipped - 6 lines]
> prompt/alert box will, but if you're desperate you might want to try
> using a synchronous Ajax request instead of an asynchronous request.
And no sooner do I write this than I stumble across an article which
tests this very thesis.
http://www.oreillynet.com/xml/blog/2007/01/do_sync_calls_freeze_browsers.html
Firefox will stall, opera and IE do not stall, and Firefox considers the
stall a bug, or defect, and is fixed in the nightly builds which means
the next release of Firefox will not stall waiting for synchronous requests.
The article was dated only yesterday so I do have a little excuse ;)

Signature
http://www.hunlock.com -- Musings in Javascript, CSS.
$FA
Laurent Bugnion [MVP] - 31 Jan 2007 08:27 GMT
Hi,
>> From my experience (which does not include Safari), a user's
>> navigation requests will trump anything save for modal dialog boxes
[quoted text clipped - 18 lines]
>
> The article was dated only yesterday so I do have a little excuse ;)
Careful here. The *browser* will not freeze, but the *current page* will
freeze. So actually, your first answer is totally correct IMHO, in that
a sync AJAX call behaves very much like an "alert", and the current
script execution is blocked until the response arrives (or until an
error occurs).
This is still a reason to recommend not using sync calls except in
special cases. Having the current page blocked for a noticeable time is
not user friendly, and can create unwanted side effects.
HTH,
Laurent

Signature
Laurent Bugnion [MVP ASP.NET]
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch