showModalDialog jquery plugin

Ihtsham Minhas picture Ihtsham Minhas · Sep 8, 2014 · Viewed 12.8k times · Source

In my old application we are using showModalDialog , As all of you know the The latest Chrome has removed support for showModalDialog which is a pain. I am looking for a quick fix like jquery plugin. e.g. $window.showModalDialog(dialog, varArgIn, varOptions); ….

Answer

Yuriy Galanter picture Yuriy Galanter · Sep 9, 2014

You can temporary re-enable showModalDialog support until May of 2015 (see https://stackoverflow.com/a/25663402/961695).

Use that time to update your code. There will be no "quick fix". One thing that showModalDialog did that no plugin will do - it stopped code execution until dialog is closed and dialog result is returned to the caller. You will have to refactor your code to use callback functions instead. Then you can use things like jQuery UI Dialog