Wednesday, May 25, 2016

Re: window.showModelDialog replacement

There is a new html5 dialog element that is being implemented in various browsers and a pollyfill that will give you what you need, cross posted from my reply on the GWT google+ community:

 
This is the new html5 way:

http://www.w3schools.com/jsref/dom_obj_dialog.asp
http://www.w3schools.com/tags/tag_dialog.asp

Pollyfill:

https://github.com/GoogleChrome/dialog-polyfill

On Tuesday, May 24, 2016 at 2:02:52 AM UTC-7, 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