<form action="upload.aspx" enctype="multipart/form-data" id="ajaxUploadForm" method="post">
<input type="file" name="fileBase" id="fileBase"><input type="submit" value="send" />
</form>
$( "#ajaxUploadForm" ).ajaxForm( {
iframe: "true",cache: false,
success: function ( response )
{
var msg = $.parseJSON( $( response ).val() );
alert ( msg.status);
}
}} );
当我尝试发送ajax表单时,我有一个错误(仅在Firefox 4中):
“未捕获异常:[Exception ...”组件返回失败代码:0x805e0006 [nsIDOMHTMLFormElement.submit]“nsresult:”0x805e0006()“location:”JS frame :: http://localhost/Scripts/jquery/jquery.form.js :: doSubmit :: line 295“数据:否] 第0行“
我使用jquery 1.5.1和jquery.from 2.67
任何建议的诉讼