Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/asp.net-mvc-3/4.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.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
Asp.net mvc 3 Safari,MVC3 ajax表单提交_Asp.net Mvc 3_Jquery_Safari_Form Submit - Fatal编程技术网

Asp.net mvc 3 Safari,MVC3 ajax表单提交

Asp.net mvc 3 Safari,MVC3 ajax表单提交,asp.net-mvc-3,jquery,safari,form-submit,Asp.net Mvc 3,Jquery,Safari,Form Submit,我有一个表格,提交刚刚好在FF,IE 8,IE 9,铬 在safari(windows)中,它提交,但我的模型为空。这种行为仅在我的开发和产品站点上发生,而不是在本地开发中发生。本地发展正常。我做错了什么 表格: 行动: 我在那里放了一个else块来测试这个案例,它执行而不是主块 [HttpPost] public ActionResult Index(ElectronicFileTransferHomeViewModel model) { ... actions... } 此应用程序

我有一个表格,提交刚刚好在FF,IE 8,IE 9,铬

在safari(windows)中,它提交,但我的模型为空。这种行为仅在我的开发和产品站点上发生,而不是在本地开发中发生。本地发展正常。我做错了什么

表格:

行动:

我在那里放了一个else块来测试这个案例,它执行而不是主块

[HttpPost]
public ActionResult Index(ElectronicFileTransferHomeViewModel model)
{
    ... actions...
}

此应用程序作为内部应用程序和windows登录后登录。Safari没有windows身份验证问题。
一个似乎对我们有效的解决办法(虽然不理想)是将Safari置于私人浏览模式。

你在哪里有
其他
博客?看起来您的Safari浏览器配置的区域性与web服务器不同,并且您的日期时间格式有问题。我添加了一个图像,显示了所有空值,即使我选择了项目。我清除了缓存,并能够在本地开发中复制此功能。@learning:您解决了问题吗?我也有同样的问题,只是在safari浏览器中。我也有同样的问题。。。MVC表单在任何地方都可以工作,除了Safari到intranet服务器;应用程序的响应就像它没有得到任何表单值一样。但是如果Safari使用Fiddler2作为代理,它就可以工作了!
searchFormSubmit: function ($form, currentForm) {
        if ($form.valid()) {
            var $button = $("#" + FileTransferHome._enum.SubmitButton);
            var $searchResults = $("#" + FileTransferHome._enum.SearchResultsDivId);

            jMessage("Processing request...", $button, true, false);
            $.ajax({
                cache: false,
                url: currentForm.action,
                type: currentForm.method,
                data: $form.serialize(),
                error: function (xhr, ajaxOptions, thrownError) {
                    jMessageHide();
                    $searchResults.html(xhr.responseText).addClass(JSGlobalVars.MessageBoxError).fadeIn('slow');
                },
                success: function (result) {
                    jMessageHide();
                    $searchResults.removeClass(JSGlobalVars.MessageBoxError).html(result).fadeIn('slow');
                    location.hash = "SEARCHRESULTS";
                }
            });
        }
    }
[HttpPost]
public ActionResult Index(ElectronicFileTransferHomeViewModel model)
{
    ... actions...
}