On Monday, December 17, 2012 3:50:44 PM UTC+1, Dominic Warzok wrote:
Window.confirm()?We use this at the moment but there you can't change the buttons. In this confirm Dialog only "OK" or ´"Cancel" is avaible.In that specific case, you'll want to Window.addClosingHandler and setMessage on the event.We also have this handler added and it works well. Butt what do you mean with "setMessage"?
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/Window.ClosingEvent.html#setMessage(java.lang.String)
"Set the message to a non-null value to present a confirmation dialog that asks the user whether or not she wishes to navigate away from the page."
This is standard JS, the browser is left in control of how exactly it displays the message, but that's the only way to possibly prevent an "unload" of your app.
-- 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/-/9DH3AkHPxecJ.
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