Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JQueryMobile无法在Internet Explorer 8中手动提交表单?_Jquery_Forms_Internet Explorer_Jquery Mobile - Fatal编程技术网

JQueryMobile无法在Internet Explorer 8中手动提交表单?

JQueryMobile无法在Internet Explorer 8中手动提交表单?,jquery,forms,internet-explorer,jquery-mobile,Jquery,Forms,Internet Explorer,Jquery Mobile,全部, 我发现我无法使用JQueryMobile 1.2在Internet Explorer 8中手动提交表单 HTML代码如下所示,非常简单: <HTML> <HEAD> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1"> <META http-equiv="Content-Type" content="text/htm

全部,

我发现我无法使用JQueryMobile 1.2在Internet Explorer 8中手动提交表单

HTML代码如下所示,非常简单:

<HTML>
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Test</title>
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
  <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
  <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
</head>

<body>
<form method="post" name="test" action="http://www.baidu.com/" data-ajax="false">
  <input type="text" id="id_0" name="id_0" size="20" maxlength="32" value="PLAY"/>
  <input type="text" id="id_1" name="id_1" size="20" maxlength="32" value="PLAY"/>

<input data-theme="b" type="submit" value="OK" id="basicSubmit"/>
</form>  

</body>
</html>

试验
我将此页面保存到本地磁盘,并在Internet Explorer 8中打开它,它将显示2个文本和一个提交按钮。但当点击“确定”按钮时,什么也没发生

如果我删除脚本标记行,其中包括jquery.mobile-1.2.0.min.js:

<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>

jquerymobile风格消失了(没关系),“ok”按钮变成可点击提交。(尽管此表单的URL不正确,IE显示错误消息)。 我还尝试了“dataajax=true”或“dataajax=false”,但都失败了


有人能帮忙吗?非常感谢。

请参阅。这个问题在上面的链接中得到了修复,只是你必须对该页面中给出的CSS进行一些更改。

我也遇到了同样的问题,提交按钮在IE9中不起作用。我将提交按钮替换为

<input type="button" id="Signup" value="Signup!" data-role="" onClick="submitForm()">

这解决了我的问题。

如果
表单操作
错误,那么它将不会出现在任何地方。事实上,我在我的页面中使用了正确的操作,它可以在Chrome/FireFox下提交,但不能在IE中提交。这里错误的操作仅用于示例。谢谢。这个问题与bug不同。这个错误应该在jQueryMobile1.2中修复。我发现我应该添加到这个HTML文件的头部。如果添加,IE可以通过单击提交按钮提交此表单。真奇怪。
    function submitForm() {
    document.registerForm.submit();
    }