Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/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
jQuery登录错误_Jquery_Jquery Mobile_Mobile_Jquery Mobile Ajax - Fatal编程技术网

jQuery登录错误

jQuery登录错误,jquery,jquery-mobile,mobile,jquery-mobile-ajax,Jquery,Jquery Mobile,Mobile,Jquery Mobile Ajax,我正在拼命尝试在我的网站上创建一个responsiv移动部分,到目前为止取得了积极的成果。 但是当我尝试创建登录时,我没有做到 单击“登录”按钮后,什么都没有发生 视图: @model hilthilange.Models.LoginModel @{ ViewBag.Title=“Logga-in”; } @节头{ @ActionLink(“Avbryt”,“IndexMobile”,“Home”,null,新的{data\u icon=“arrow-l”,data\u rel=“back”})

我正在拼命尝试在我的网站上创建一个responsiv移动部分,到目前为止取得了积极的成果。 但是当我尝试创建登录时,我没有做到

单击“登录”按钮后,什么都没有发生

视图:

@model hilthilange.Models.LoginModel
@{
ViewBag.Title=“Logga-in”;
}
@节头{
@ActionLink(“Avbryt”,“IndexMobile”,“Home”,null,新的{data\u icon=“arrow-l”,data\u rel=“back”})
@视图包。标题
}
@使用(Html.BeginForm(new{data_ajax=“false”,ReturnUrl=ViewBag.ReturnUrl}))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
  • Detaljer
  • @LabelFor(m=>m.UserName) @Html.TextBoxFor(m=>m.UserName) @Html.ValidationMessageFor(m=>m.UserName)
  • @LabelFor(m=>m.Password) @Html.PasswordFor(m=>m.Password) @Html.ValidationMessageFor(m=>m.Password)
  • @LabelFor(m=>m.RememberMe,新的{@class=“checkbox”}) @CheckBoxFor(m=>m.RememberMe)
} @节脚本{ @Scripts.Render(“~/bundles/jqueryval”) }

因此,我无法确定错误是什么。

尝试提交表单时是否存在JS错误?或者验证会悄悄地失败?我不知道。我没有什么例外。什么事都没有发生。在[link](hilthinange.azurewebsites.net)上查看它昨天运行得很好,但今天不行……哈哈,登录表单在Chrome中提交得很好。感谢您的输入,至少在代码运行的某个地方。我在装有Safari的iPhone上试用了它,在装有原始浏览器的三星上试用了它,但什么也没发生。我应该试着改变代码吗?你能在电话里调试吗?否则,跟踪错误可能会很困难。
@model HiltiHaninge.Models.LoginModel
@{
ViewBag.Title = "Logga in";
}

@section Header{
@Html.ActionLink("Avbryt", "IndexMobile", "Home", null, new { data_icon = "arrow-l", data_rel = "back" })
<h1>@ViewBag.Title</h1>
}

<section id="loginForm">
@using (Html.BeginForm(new { data_ajax = "false", ReturnUrl = ViewBag.ReturnUrl }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <ul data-role="listview" data-inset="true">
        <li data-role="list-divider">Detaljer</li>
        <li data-role="fieldcontain">
            @Html.LabelFor(m => m.UserName)
            @Html.TextBoxFor(m => m.UserName)
            @Html.ValidationMessageFor(m => m.UserName)
        </li>
        <li data-role="fieldcontain">
            @Html.LabelFor(m => m.Password)
            @Html.PasswordFor(m => m.Password)
            @Html.ValidationMessageFor(m => m.Password)
        </li>
        <li data-role="fieldcontain">
            @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
            @Html.CheckBoxFor(m => m.RememberMe)
        </li>
        <li data-role="fieldcontain">
            <input type="submit" value="Logga in" />
        </li>
    </ul>
}
</section>

@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
}