【问题标题】:Form Submit Click Not working in IE 10表单提交单击在 IE 10 中不起作用
【发布时间】:2014-06-18 10:41:05
【问题描述】:

我正在使用alertify.js 在我的网站中生成警报。 在网站的工作中,有这样一种情况,用户可以从在线人员列表中点击一个名字,就会有一个通知发送给那个人。

虽然请求通知显示在另一端,但上面有一个接受按钮。它实际上是一个表单,当用户单击“开始”时,将打开一个新选项卡,其中很少有参数作为 POST 方法发送。

我的 Alertify.js 代码是:-

<script type="text/javascript">

alertify.log("<?php echo $row['from']." want to talk to You !! <br> "?><div><form  action='chatIndex.php' method='POST' target='_blank'><input type='hidden' name='not_no' value='<?php echo $row['no']?>'><input type='hidden' name='not_from' value='<?php echo $row['from']?>'><input type='submit' style='float:left' value='Start' /></div>");

</script>

这在 Chrome、Firefox 中运行良好,但在 IE 10 中无法运行。 我还使用这些元标记在 IE 10 中正确运行 Jquery

<meta http-equiv="x-ua-compatible" content="IE=9" >
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="x-ua-compatible" content="IE=EmulateIE9">

【问题讨论】:

  • 当问题是关于 IE10 时,你为什么要为 IE9 设置 X-UA 元标记来处理页面渲染? content="IE=10", content="IE=EmulateIE10" 代替!
  • 是的,关于那个..我实际上在互联网上搜索并使用了它,它恰好工作得很好!!

标签: jquery internet-explorer alertify


【解决方案1】:

也添加这个(忘记添加 IE=10):

<meta http-equiv="X-UA-Compatible" content="IE=10" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE10" />

【讨论】:

    猜你喜欢
    • 2013-01-29
    • 1970-01-01
    • 2012-02-18
    • 1970-01-01
    • 2014-03-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多