Friday, September 28, 2012

Re: Should onbeforeunload work in GWT JSNI?

I tried this solution and it worked, but I wanted to make this only create the popup dialog under some circumstances (like testing a boolean into the onbeforeunload function before returning a string). I tried adding a boolean to my EntryPoint and then setting it from the right piece of code, but that never worked.

Anyone have insight?

Brett

On Thursday, 17 December 2009 10:19:59 UTC-6, Damon Lundin wrote:
> In GWT, use Window.addWindowClosingHandler and setMessage on the
> Window.ClosingEvent.

Well, how about that?  That works.  Thank you very much!

I'm still a little curious though why the JSNI version doesn't work.

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

No comments:

Post a Comment