[jQuery] Re: OnBeforeUnload and jQuery

2008-11-10 Thread manwood
Thanks Karl. I can see the potential issues with providing a hook at the point a user tries to leave a page. I will try your other suggestion though. Thanks. On 10 Nov, 01:22, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > Unfortunately you have to use the "built in" window.onbeforeunload method. > > Y

[jQuery] Re: OnBeforeUnload and jQuery

2008-11-09 Thread Karl Rudd
Unfortunately you have to use the "built in" window.onbeforeunload method. Yes it does look like crap but it's the standard box and if the browsers allowed you to just do anything when someone tried to close a window it would be more of a security risk (think uncloseable windows). The only time

[jQuery] Re: onbeforeunload

2008-03-04 Thread Karl Rudd
The onbeforeunload event is a very unusual one, in my experience it's not a "real" event. It's more like a callback (or is that a call-in), used by the browser to get a custom "Do you really want to leave?" string. Just use the windows.onbeforeunload = method, it works. Karl Rudd On Wed, Ma

[jQuery] Re: onbeforeunload

2008-03-04 Thread MorningZ
Why not just use the working javascript method of doing so? and if you are new to the event, it's a very tricky-to-implement event with little to no customization of what you can do with it