As Arthur says, losing power won't give you a closing event. You also have
to decide what to do if the internet connection is lost for whatever reason
(how long is 'lost' as opposed to 'misplaced'? You may just have gone into a
train tunnel which doesn't have an internet connection (not all of them do
where I am)).
If it's important, then pinging the server at regular intervals might be
your best bet.

Ian

http://examples.roughian.com


2009/6/17 Arthur Kalmenson <[email protected]>

>
> This might be what you're looking for:
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/Window.ClosingEvent.html
>
> I doubt this will fire if the machine powers off due to a power failure.
>
> --
> Arthur Kalmenson
>
>
>
> On Tue, Jun 16, 2009 at 8:07 AM, Taufeeq<[email protected]> wrote:
> >
> > How to capture shutdown event of system in javascript? Our requirement
> > is like, if system shoutdown normally or due to power failure we need
> > to send session closing request to server.
> > Reply With Quote
> >
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to