I hesitate to suggest that a simpler approach may be to store the
positions as they change, rather than wait until the browser suddenly
disappears, shuts down, moves to another page, or whatever?

On Nov 15, 11:50 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> On Nov 15, 9:35 pm, Bil Corry <[EMAIL PROTECTED]> wrote:
>
> > [EMAIL PROTECTED] wrote on 11/15/2007 8:12 AM:
>
> > > I'd just like to know what the jQuery best practice for catching the
> > > browser exit event is?
>
> > Probably just bind your code to the onunload event.  From the jQuery docs:
>
> >         $(window).unload( function () { alert("Bye now!"); } );
>
> > More info here:
>
> >         <http://docs.jquery.com/Events/unload>
>
> > - Bil
>
> I doubt persisting data via an Ajax call on the unload event will work
> cross browser if at all... but I'm not sure about this.
>
> --Klaus

Reply via email to