Is it possible to detect if a popup (opened by Window.open(..) ) has been closed?
I'm integrating a OpenID system into my site, and for part of it, I'm triggering a popup to login to various openID providers. This popup is opened by a simple; Window.open(url, _blank, menubar=1,resizable=1,width=480,height=400); Is it possible to know when the user close's this popup? Either by a listener, or (if necessary) by checking periodical for the window's existence. Thanks, Thomas -- 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-tool...@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: Is it possible to detect if a popup (opened by Window.open(..) ) has been closed?
Hi, popup.addCloseHandler(new CloseHandlerPopupPanel() { @Override public void onClose(CloseEventPopupPanel arg0) { // do something on close } }); if you use eventbus you may create your own PopupClosedEvent and onClose do : eventBus.fireEvent(new PopupClosedEvent()) -- 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-tool...@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: Is it possible to detect if a popup (opened by Window.open(..) ) has been closed?
thanks, but I'm affaird I wasn't clear enough :( I meant a popup window, not a popup panel. (that is, an actual separate browser window triggered by a Window.open), and not a internal PopupPanel within the same window. Sorry for the confusion. On Feb 1, 1:42 pm, mariyan nenchev nenchev.mari...@gmail.com wrote: Hi, popup.addCloseHandler(new CloseHandlerPopupPanel() { @Override public void onClose(CloseEventPopupPanel arg0) { // do something on close } }); if you use eventbus you may create your own PopupClosedEvent and onClose do : eventBus.fireEvent(new PopupClosedEvent()) -- 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-tool...@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: Is it possible to detect if a popup (opened by Window.open(..) ) has been closed?
Hi, what about Window.addCloseHandler(...);? -- 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-tool...@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: Is it possible to detect if a popup (opened by Window.open(..) ) has been closed?
I think that only monitors the current window :-/ On 1 February 2010 14:39, mariyan nenchev nenchev.mari...@gmail.com wrote: Hi, what about Window.addCloseHandler(...);? -- 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-tool...@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. -- 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-tool...@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: Is it possible to detect if a popup (opened by Window.open(..) ) has been closed?
For other peoples reference I found a solution/work-around; Triggered from the popup window itself, I added code that could communicate back to that which opened it. Native javascript like this would trigger the history; window.opener.location.hash = meep2; Or something like this to trigger a native function on the source window; window.opener.sendFunctionToMainFrame('retestlogin','retestlogin'); Thanks for trying to help. -Thomas On Feb 1, 3:15 pm, Thomas Wrobel darkfl...@gmail.com wrote: I think that only monitors the current window :-/ On 1 February 2010 14:39, mariyan nenchev nenchev.mari...@gmail.com wrote: Hi, what about Window.addCloseHandler(...);? -- 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-tool...@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. -- 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-tool...@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.