简体   繁体   English

JavaScript表单未发布到IE 9

[英]Javascript form not posting to IE 9

I've got a very simple Javascript form that posts to a PHP page. 我有一个非常简单的Javascript表单,可发布到PHP页面。 This page is launching from a CRM system and the page itself can only be an HTML page, so I can't use PHP for the form. 该页面是从CRM系统启动的,该页面本身只能是HTML页面,因此我不能在表单中使用PHP。 The form posts the user id (which is generated by the CRM system) over to a PHP page and then does a load of stuff based on the UserID. 该表单将用户ID(由CRM系统生成)张贴到PHP页面上,然后根据UserID进行工作。

The problem, however, is that some users now have IE9 and it doesn't seem to work with that! 但是,问题在于某些用户现在拥有IE9,而且似乎无法使用它! IE 8 is absolutely fine, but IE9 just doesn't seem to post the userid. IE 8绝对可以,但是IE9似乎没有发布用户ID。

The form within the CRM system is as follows: CRM系统中的表格如下:

<form action="http://intranet-srv02/reports/contact.php" method="post" onsubmit="target_popup(this)">
<input name="userid" type="hidden" value="[userid]" />
<input type="submit" value="Reports" />
</form>
<script language="JavaScript1.2">
function target_popup(form) {
window.open('', 'formpopup', 'width=1100,height=750,resizeable,scrollbars');
form.target = 'formpopup';
}
</script>

And when, on the contact.php page put 而何时,在contact.php页面上

<?php
$userid = $_POST['userid'];
echo $userid;
?>

Nothing echos on IE9 (but on IE8 and others it does) IE9上没有任何回音(但在IE8和它上的其他声音上却如此)

Any help much appreciated! 任何帮助,不胜感激!

EDIT: I've updated the deprecated language attribute, but still having the same issue. 编辑:我已经更新了不推荐使用的语言属性,但仍然存在相同的问题。 The form now reads: 表格现在显示为:

<form action="http://intranet-srv02/reports/contact.php" method="post" onsubmit="target_popup(this)">
<input name="userid" type="hidden" value="[userid]" />
<input type="submit" value="Reports" />
</form>
<script type="text/javascript">
function target_popup(form) {
window.open('', 'formpopup', 'width=1100,height=750,resizeable,scrollbars');
form.target = 'formpopup';
}
</script>

Any other ideas?! 还有其他想法吗?

So it turns out that there is a (currently unknown exactly what) problem with IE9 and user profiles. 因此,事实证明IE9和用户配置文件存在一个(目前未知的确切原因)问题。

Possibly the problem is when users were on XP and then they started working on a Windows 7 box. 可能的问题是,当用户使用XP时,然后他们开始在Windows 7机器上工作。 Ultimately we haven't completely narrowed it down yet, but re-creating the user's profile seems to fix the issue! 最终,我们还没有完全缩小范围,但是重新创建用户的个人资料似乎可以解决此问题!

The joys of Windows... Windows的乐趣...

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

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