showModalDialog无法在Google Chrome 5.0.3中运行 [英] showModalDialog is not working in Google Chrome 5.0.3

查看:100
本文介绍了showModalDialog无法在Google Chrome 5.0.3中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

以下代码在以下浏览器中正常运行:



  • IF
  • Mozilla
  • Safari
  • Hi
    Following code is working fine in following browser:


    • IF
    • Mozilla
    • Safari
      • Google Chrome 5.0.3
      var returnValue = window.showModalDialog("popup.aspx?", "window", "dialogWidth:390px;dialogHeight:180px;scroll:no;");
          }





      您的回答将不胜感激!



      谢谢,

      Imdadhusen



      Your answer will be appreciated!

      Thanks,
      Imdadhusen

      推荐答案

      我发现Google有一些问题与showModalDialog有关。您可以按照此处 [ ^ ]。



      祝你好运!
      I found Google has (had) some issues with the showModalDialog. You can follow the status of the problem right here[^].

      Good luck!


      你好,



      你是对的window.showModalDialog()无效谷歌浏览器的最新更新版本,我在我的项目中也遇到了这个问题。



      您可以为此提供多种解决方案: -



      1.最简单的是window.open();



      优点: - 易于操作和使用。

      缺点: - 当弹出窗口打开时,你仍然可以在父页面上工作。



      2.高效的解决方案是使用jQuery对话框控件。

      为了更好地理解jQuery对话框控件,你可以参考

      链接 http ://jqueryui.com/dialog/ [ ^ ]





      谢谢。
      Hi,

      You are right window.showModalDialog() doesn't work with the latest updated version of Google Chrome, i too faced this problem in my project.

      You can have a number of solutions for that :-

      1. The easiest one is window.open();

      Pros:- Easy to handle and use.
      Cons:- You can still work on the parent page while the pop-up window is opened.

      2. The Efficient solution is to use jQuery dialog control.
      For better understanding of jQuery dialog control you can refer the
      link "http://jqueryui.com/dialog/[^]"


      Thanks.


      我做了我的项目之一。它会起作用。我认为这可能是一些问题......再次br $> b $ b

      i do it one of my project .it will work .i think theire might be some issue..try again

      window.showModalDialog("popup.aspx?", true, 'dialogHeight:150px;dialogWidth:500px');


      这篇关于showModalDialog无法在Google Chrome 5.0.3中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆