Re: RPC in onWindowClosing() problem

2011-04-08 Thread George Georgovassilis
Hello Ania,

This might be a browser related behavior - if the window is closed,
all activities related with it are cancelled.
It might be best if you tried an alternative aproach: instead of
having the browser explicitly signing the user out of your application
(which is what you are trying to implement by handling
onWindowClosing), you might want to implement a keep alive mechanism.
The browser would notify the server every X seconds, which counts as a
logged in user. If the last notification is older than Y  X seconds,
your server may assume that the user logged out or just closed the
window.

On Apr 5, 1:40 am, Ania deanoz...@gmail.com wrote:
 Hi,
 I'm using RPC within onWindowClosing().It is supposed to delete certain data
 from database based on passed username but nothing happens.Is there any
 alternative way to modify database without using rpc on tab or browser
 closing?
 Thank you for any help!
 Ania

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: RPC in onWindowClosing() problem

2011-04-08 Thread Ania
Thanks a lot! I kept onwindowclosing for some database 
deletions,but definitely i'm gonna do this keep alive mechanism for logging 
out. 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



RPC in onWindowClosing() problem

2011-04-04 Thread Ania
Hi,
I'm using RPC within onWindowClosing().It is supposed to delete certain data 
from database based on passed username but nothing happens.Is there any 
alternative way to modify database without using rpc on tab or browser 
closing?
Thank you for any help!
Ania

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.