next.js icon indicating copy to clipboard operation
next.js copied to clipboard

Uncaught ReferenceError: ducument is not defined at

Open Flave1 opened this issue 7 years ago • 2 comments

@section Scripts{

 <script type="text/javascript">
        $(ducument).ready(function () {
         $("#follow").click(function (e) {
         var foll = {};
        foll.ID = 222;
        foll.FName = "FRANK";
        foll.LName = "SANTA";
        foll.url = "@Url.Action("Follow", "FarmsCommunity")";
        foll.type = "POST";
        foll.dataType = "json";
        foll.data = JSON.stringify({ usr: foll });
        foll.contentType = "application/json";
        foll.success = function (response) {
                                alert("success")
               };
        foll.error = function (response) {
                               alert("error");
              };
             $.ajax(foll);
              });
          });
   </script>
}

My Controller public ActionResult Follow(string userid, User usr) { return Json(new { ResultValue = "Some Value" }); }

Flave1 avatar Mar 27 '19 23:03 Flave1

Shouldn't it be document not ducument?

s4kh avatar Mar 28 '19 05:03 s4kh

This is unrelated to Next.js.

timneutkens avatar Mar 28 '19 13:03 timneutkens