Whar are equivalent cross-browser solutions for window.showModalDialog?

我的梦境 提交于 2019-12-10 17:21:07

问题


Whar are equivalent cross-browser solutions for window.showModalDialog? showModalDialog introduced in IE and FF 3.


回答1:


Natively I think there are none. But there are lots of UI toolkits that provides such functionality, such as jQuery-UI, the dojo toolkit and also the Yahoo-UI.




回答2:


As of the asp.net tag: the ajax control toolkit has an ModalPopupExtender. Maybe this one is yours.

http://www.asp.net/ajax/




回答3:


jQuery UI provides dialogs and in this you can have a modal dialog also. Check out this

http://jqueryui.com/demos/dialog/#modal

You can set the modal option to be true to get the modal dialog. See options section in this page.

$('.selector').dialog({ modal: true });


来源:https://stackoverflow.com/questions/2228543/whar-are-equivalent-cross-browser-solutions-for-window-showmodaldialog

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!