【发布时间】: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