Questions tagged [unobtrusive-ajax]

Question regarding Microsoft jQuery plugin for Unobtrusive Ajax

107 questions
0
votes
1 answer

Reinitialize unobstrusive jquery validation

I've rebinding viewmodel via ajax because of I don't like the default feature modal popup, since I forgot which tutorial link I'm following, here's some of my code The datatable code $(document).ready(function () { $("#btnNew").text("New"); …
0
votes
1 answer

How to make an Unobtrusive Ajax call within a Select List?

I am attempting to set up a drop down in my App that allows users to select a list of metadata depending upon whether or not it is classified as PII. The problem I am running into is how to essentially incorporate the logic behind @Ajax.ActionLink()…
0
votes
1 answer

JSON.parse error: unexpected character after project release

I used jquery.unobtrusive-ajax in my view. In this view, there is a form that is submit via ajax. In the action if the modelsets is invalid, I will return the errors through the code below Response.StatusCode = (int)HttpStatusCode.BadRequest; …
Salman
  • 5
  • 4
0
votes
1 answer

Does "jQuery Unobtrusive Ajax Helpers in ASP.NET Core" work in Asp.Net Core Razor Pages (New Web Framework from Microsoft)

A download is available in this link jQuery Unobtrusive Ajax Helpers in ASP.NET Core That I use in my "Asp.Net MVC Core 2.0" applications and eases my work. Is this library works in "Asp.Net Core 2.0 Razor Pages" so that I can render a "Partial…
mz1378
  • 1,957
  • 4
  • 20
  • 40
0
votes
0 answers

Unobtrusive ajax validate server side

I was just trying out Unobtrusive ajax in .net core 2.0. I am trying the following model: public class Blog { public int BlogId { get; set; } [Required] [Never(ErrorMessage = "Never say never")] public string Url { get; set; } …
0
votes
1 answer

Tags for modal are not being rendered

I am trying to fill in a modal template using javascript and partial views. I have my template in my master layout file and I want it filled when an Ajax ActionLink is clicked. However 4 inner divs in my template disappear when the Ajax ActionLink…
0
votes
1 answer

Asp.net core cloudflare ssl Blocked Mixed content using unobtrusive-ajax

I have recently set up a website that uses cloudflare free ssl. When using ajax calls for pagination I get a mixed content error, I assume because it's still at some point transmitted over http!? I tried using the instructions for https redirect…
0
votes
1 answer

Ajax.BeginForm change AjaxOptions depending on submit value

How can I change the values ​​of the AjaxOptions depending on the submit value of the pressed button. In View: @using (Ajax.BeginForm("function_name", "Controller", new AjaxOptions { HttpMethod = "POST", InsertionMode =…
Geo
  • 309
  • 4
  • 22
0
votes
1 answer

Why should I add jquery scripts with ms unobtrusive Ajax?

I have followed several tutorials about microsoft unobtrusive Ajax Nuget package. They say I should add this script inclusion in my main layout: I got this js error: ReferenceError:…
Bob5421
  • 7,757
  • 14
  • 81
  • 175
0
votes
1 answer

Can we stop sending ajax for a while and continue?

I need to stop sending ajax request of an Ajax.ActionLink for a while on OnBegin and continue the request if confirm alert is true. In below code i could abort ajax request, is there any way to resend it using its own methods. beforeDelete:…
Dileep Paul
  • 167
  • 3
  • 17
0
votes
1 answer

MVC4 javascript file location

I am trying to create MVC4 application. The scaffolded scripts contained older jquery so I updated it to 1.10 but corresponding mvc4 file unobtrusive-ajax.js seems to stop working as it is using live() instead of on() Where can i find…
Robert_Junior
  • 1,122
  • 1
  • 18
  • 40
0
votes
2 answers

Ajax.BeginForm return Json for message

I am using jquery unobtrusive ajax and MVC Ajax.Beginform() to validate a form via C# server side. I'm always replacing the form with itself. It's all working fine, but I am wondering: Let's say my form is triggering a "save to database" action and…
PoeHaH
  • 1,936
  • 3
  • 28
  • 52
0
votes
1 answer

How can I block the user from using the page while ASP.NET MVC Ajax unobtrusive form is loading?

When you using MVC Ajax in a razor view like this @using (Ajax.BeginForm("Something", new { id = Model.Id }, new AjaxOptions { UpdateTargetId = "something + Model.Id, InsertionMode = InsertionMode.ReplaceWith, LoadingElementId =…
regisbsb
  • 3,664
  • 2
  • 35
  • 41
0
votes
1 answer

MVC4 Unobtrusive AJAX BeginForm Internet Explorer DIV Empty

I wonder if anyone can help me. I am attempting to add unobtrusive AJAX to my MVC 4 application. I have the following scripts added to my page.
0
votes
1 answer

Why does Unobtrusive Ajax require a layout page (returning a partial view doesn't work)?

While creating a custom plugin, that Ajaxifies any forms that are not already Ajaxified by unobtrusive Ajax, I noticed that my partial/layout code failed to display on post-back with a normal Unobtrusive Ajax form: For my other partial-update…
iCollect.it Ltd
  • 92,391
  • 25
  • 181
  • 202