简体   繁体   English

Ipad的Safari浏览器中window.showModalDialog()的兼容性问题

[英]Compatablity issue for window.showModalDialog() in safari browser of Ipad

I am running my asp.net application on safari in Ipad,I want to disable parent window when any pop up window is opened. 我正在Ipad的safari上运行asp.net应用程序,我想在打开任何弹出窗口时禁用父窗口。 For this I was using.. 为此,我正在使用..

window.showModalDialog("Questions.aspx?store=" + Store + "&auditDate=" + AuditDate + "&section=" + SectionId, "", "dialogHeight:750px; dialogWidth:950px;center:yes;edge:raised; Scroll:Yes; ");

But showModalDialog() method was not working in safari Browser in Ipad,so I am using window.open() function.But functionality of showModalDialog() has been lost. 但是showModalDialog()方法在Ipad的Safari浏览器中不起作用,因此我使用window.open()函数。但是showModalDialog()的功能已丢失。

Please let me , How to disable parent window when Pop window is opened , and let me know any alternative way to achieve this functionality without using showModalDialog() Method , to work in all Browser without compatiblity issues with Browser. 请让我了解如何在“弹出窗口”打开时禁用父窗口,并让我知道在不使用showModalDialog()方法的情况下实现此功能的任何其他方法,以在所有浏览器中正常工作而不会出现浏览器兼容性问题。

window.showModalDialog is specific only to IE. window.showModalDialog仅特定于IE。 You should consider using JQuery UI for your modal dialogs Jquery UI . 您应该考虑将JQuery UI用于模态对话框Jquery UI

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM