Question regarding Microsoft jQuery plugin for Unobtrusive Ajax
Questions tagged [unobtrusive-ajax]
107 questions
38
votes
8 answers
Unobtrusive Ajax stopped working after update jQuery to 1.9.0
I have just updated jQuery & jQuery UI to:
jquery-1.9.0.min.js and
jquery-ui-1.9.2.min.js
And... all my unobtrusive Ajax calls (Ajax.ActionLink, Ajax.BeginForm) stopped working properly - they open results in a new page instead of updating the…

monstro
- 6,254
- 10
- 65
- 111
15
votes
2 answers
Unobtrusive AJAX error: "Uncaught ReferenceError: Sys is not defined"
Example code:
In an MVC 5 project in Visual Studio, I have set up the following controller and views:
Controller
TestController.cs
public class TestController : BaseController
{
public ActionResult Index()
{
return View("Index");
…

Nick Coad
- 3,623
- 4
- 30
- 63
15
votes
1 answer
jquery.unobtrusive-ajax plugin broken when updating to Jquery 1.9.0
Possible Duplicate:
jQuery 1.7 - Turning live() into on()
//Solution: I simply replaced the four occurrences like the approved answer suggested and unobtrusive ajax plugin is up and working again with jquery 1.9.0
Update//Observe the comments for…

Magnus Karlsson
- 3,549
- 3
- 31
- 57
14
votes
5 answers
How to reference Microsoft.JQuery.Unobtrusive.Ajax within my ASP.NET Core MVC project
I am trying to use Microsoft.JQuery.Unobtrusive.Ajax. I started by installing the package using NuGet and as expected I am able to see it among my dependencies.
My problem is that I cant find a way to reference the script so I can use it within my…

LH7
- 1,385
- 2
- 12
- 16
14
votes
1 answer
Is it recommended to use unobtrusive AJAX with MVC 5?
I know that there is library that supports unobtrusive AJAX so I asked my father (also .net programmer) why he don't use it and his answer was very surprising for me:
"The unobtrusive AJAX (in your case jquery.unobtrusive-ajax) not
recommended…

Zilberman Rafael
- 1,341
- 2
- 14
- 45
14
votes
2 answers
ASP.NET MVC 4: cannot modify jQuery Unobtrusive Ajax
Using ASP.NET MVC 4 and NuGet to manage packages.
After upgrading to jQuery 1.9.1 via NuGet, I began getting JavaScript errors regarding the removal of the live() function in jQuery 1.9.x.
I hit F5 to run in debugging mode from VS.NET, go to the…

Philip Tenn
- 6,003
- 8
- 48
- 85
12
votes
2 answers
ASP.NET Core and JQuery unobtrusive AJAX not working
If I start a new project in .net 4.5 and hit manage nuget packages, search for ajax, then hit install for ajax unobtrusive. I can then go into my cshtml file and type @Ajax.___ e.g. @Ajax.beginForm
If I create a new project with Dot Net Core... I…

David van Dugteren
- 3,879
- 9
- 33
- 48
10
votes
5 answers
How to use $(this) inside MVC3 Ajax.ActionLink OnBegin,OnComplete Events
My Controller creates a list of links like this
-
@foreach (var item in Model.MenuItems)
{
- @Ajax.ActionLink(item.Caption, item.ActionName, item.ControllerName, new AjaxOptions { UpdateTargetId =…

MichaelLake
- 1,735
- 14
- 17
9
votes
2 answers
Upload is null after adding jquery.unobtrusive-ajax.js reference
If I don't refer jquery.unobtrusive-ajax.js I can get attachment on Post. If I refer it It's giving me null.
@using (Ajax.BeginForm("Index", "ContactSubmission", new AjaxOptions{…

James123
- 11,184
- 66
- 189
- 343
9
votes
1 answer
Unobtrusive Ajax Form for partial view
I'm having trouble using unobtrusive ajax to post data from a contact us form.
My Partial View is like this:
@model site.ViewModel.Home.ContactUsViewModel
@using (Ajax.BeginForm("_ContactUsPartial", "Home",
new AjaxOptions…

mezoid
- 28,090
- 37
- 107
- 148
6
votes
3 answers
jQuery unobtrusive validation ignores "cancel" class on submit button if used in Ajax form
I am trying to implement optional client side validation using
ASP.NET MVC 4,
unobtrusive jQuery validation,
unobtrusive ajax
This works fine
Following pictures show what I mean with optional client side validation:
The only one field on my…

George Mamaladze
- 7,593
- 2
- 36
- 52
6
votes
2 answers
ASP.NET MVC 3 and jquery.unobtrusive-ajax.min.js
I want to use the Ajax.ActionLink Html helper therefore I need the jquery.unobtrusive-ajax.min.js library but IE is always showing this error:
Microsoft JScript runtime error: Unable to set value of the property 'unobtrusive': object is null or…

sada
- 584
- 2
- 8
- 25
4
votes
2 answers
data-ajax-update and data-ajax-mode="replace" not working in dotnet core jquery unobtrusive ajax
I have an anchor which should replace a grid with a partial view .

Joy
- 6,438
- 8
- 44
- 75
3
votes
3 answers
Ajax login dynamic popup dialog
I thought this should be pretty well documented, because it seems like a pretty common scenario. Unfortunately, I find a lot of conflicting information out there and no real consensus on the correct way to go about this in an MVC 3 compatible,…

Erik Funkenbusch
- 92,674
- 28
- 195
- 291
3
votes
1 answer
Jquery-Unobtrusive-Ajax Not Finding data-ajax-update
I have the following link in my MVC Core project:

willjohnathan
- 300
- 3
- 9