Tuesday, May 24, 2016

Re: window.showModelDialog replacement

Old window.showModalDialog returns a value into opener (parent window). Because this application is old and uses a lot of window.showModalDialog which belongs to IE built-in javascript function.. I need to write window.showModalDialog replacement for Chrome and some mobile devices. I do appreciate your any suggestions.

On Tuesday, May 24, 2016 at 9:45:58 PM UTC+8, Chad Vincent wrote:
I normally use a custom DialogBox ( http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/DialogBox.html ), since it is within-document, I can do whatever I need to in it (validation, Widgets, prompt for input using a custom widget, etc.), and it doesn't block other tabs.

On Tuesday, May 24, 2016 at 4:02:52 AM UTC-5, David wrote:
I am using GWT to improve an existing web site written in ASP. This site has a lot of window.showModalDialog. It needs to run in Android phones too. The window.showModalDialog has been disabled by Chrome it is giving me error as "undefined is not a function". I can use window.open to replace it. But I can not get a return value from window.open. 
Can anyone please tell me what is the alternative for the window.showModelDialog or how to get a return value from window.open?

Thanks,

David

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment