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?


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
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment