From: Jorge on
On Apr 8, 5:45 pm, Antony Scriven <adscri...(a)gmail.com> wrote:
>
> Synchronous requests don't tend to improve the user's
> experience. --Antony

But onunload you can't do an asynchronous XHR.
--
Jorge.
From: Sean Kinsey on
On Apr 8, 8:00 pm, Jorge <jo...(a)jorgechamorro.com> wrote:
> On Apr 8, 5:45 pm, Antony Scriven <adscri...(a)gmail.com> wrote:
>
>
>
> > Synchronous requests don't tend to improve the user's
> > experience. --Antony
>
> But onunload you can't do an asynchronous XHR.
> --
> Jorge.

Perhaps not, but I have seen it done in onbeforeunload.
From: Sean Kinsey on
On Apr 8, 8:19 pm, Sean Kinsey <okin...(a)gmail.com> wrote:
> On Apr 8, 8:00 pm, Jorge <jo...(a)jorgechamorro.com> wrote:
>
> > On Apr 8, 5:45 pm, Antony Scriven <adscri...(a)gmail.com> wrote:
>
> > > Synchronous requests don't tend to improve the user's
> > > experience. --Antony
>
> > But onunload you can't do an asynchronous XHR.
> > --
> > Jorge.
>
> Perhaps not, but I have seen it done in onbeforeunload.

The code at http://kinsey.no/code/xhronunload/ runs successfully on
onunload in current versions of Firefox, Chrome, Safari and Internet
Explorer, and also in IE 6.
I didn't take the time to get the onunload event in Opera to fire, so
I don't know about that one.
From: Jorge on
On Apr 8, 8:42 pm, Sean Kinsey <okin...(a)gmail.com> wrote:
> On Apr 8, 8:19 pm, Sean Kinsey <okin...(a)gmail.com> wrote:
>
> > On Apr 8, 8:00 pm, Jorge <jo...(a)jorgechamorro.com> wrote:
>
> > > On Apr 8, 5:45 pm, Antony Scriven <adscri...(a)gmail.com> wrote:
>
> > > > Synchronous requests don't tend to improve the user's
> > > > experience. --Antony
>
> > > But onunload you can't do an asynchronous XHR.
> > > --
> > > Jorge.
>
> > Perhaps not, but I have seen it done in onbeforeunload.
>
> The code athttp://kinsey.no/code/xhronunload/runs successfully on
> onunload in current versions of Firefox, Chrome, Safari and Internet
> Explorer, and also in IE 6.
> I didn't take the time to get the onunload event in Opera to fire, so
> I don't know about that one.

....syncrhonously: xhrObj.open('GET', "index.html", **false**);
--
Jorge.
From: Sean Kinsey on
On Apr 8, 9:02 pm, Jorge <jo...(a)jorgechamorro.com> wrote:
> On Apr 8, 8:42 pm, Sean Kinsey <okin...(a)gmail.com> wrote:
>
>
>
>
>
> > On Apr 8, 8:19 pm, Sean Kinsey <okin...(a)gmail.com> wrote:
>
> > > On Apr 8, 8:00 pm, Jorge <jo...(a)jorgechamorro.com> wrote:
>
> > > > On Apr 8, 5:45 pm, Antony Scriven <adscri...(a)gmail.com> wrote:
>
> > > > > Synchronous requests don't tend to improve the user's
> > > > > experience. --Antony
>
> > > > But onunload you can't do an asynchronous XHR.
> > > > --
> > > > Jorge.
>
> > > Perhaps not, but I have seen it done in onbeforeunload.
>
> > The code athttp://kinsey.no/code/xhronunload/runssuccessfully on
> > onunload in current versions of Firefox, Chrome, Safari and Internet
> > Explorer, and also in IE 6.
> > I didn't take the time to get the onunload event in Opera to fire, so
> > I don't know about that one.
>
> ...syncrhonously: xhrObj.open('GET', "index.html", **false**);
^^^^^^^^^^
What was that about?