the asynch method to get around 'critical results' is to use the callbacks.
you just continue the logic inside there, plus you have the ajaxstart
& ajaxstop to selectively 'prevent' any other features while waiting
for the 'critical' result.
Of course I have no problem with implementing the sync XHR, I just
prefer async (since I have jquery to do the dirty work)
On 11/8/06, Sébastien <[EMAIL PROTECTED]> wrote:
> I was really asking if there was any support for synchronous XHR within
> jQuery. It's basically no more complicated than opening the XHR object
> like:
>
> req.open("GET", url, false)
>
> instead of
>
> req.open("GET", url, true)
>
> However, jQuery does not define any argument/option for specifying that
> thirs parameter.
>
> Le Tue, 7 Nov 2006 12:10:28 -0800,
> "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> a écrit :
>
> > Sync is only cool for little XMLHttpRequest applications... they wait
> > until the asynch request is done.
>
> You may want to have blocking XHR call because the result is critical
> for your application, and you do not want anything else to be going in
> parallel.
>
> This is an edge case, but it can be very handy in a couple of places.
>
> -- Sébastien
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
--
Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/