Question regarding Microsoft jQuery plugin for Unobtrusive Ajax
Questions tagged [unobtrusive-ajax]
99 questions
37
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…
![](../../users/profiles/610422.webp)
monstro
- 5,117
- 7
- 53
- 94
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…
![](../../users/profiles/635858.webp)
Magnus Karlsson
- 3,461
- 2
- 24
- 56
14
votes
1 answer
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");
…
![](../../users/profiles/1704985.webp)
Nick Coad
- 3,346
- 4
- 25
- 61
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…
![](../../users/profiles/3149216.webp)
Zilberman Rafael
- 1,281
- 2
- 13
- 42
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…
![](../../users/profiles/463196.webp)
Philip Tenn
- 5,615
- 7
- 42
- 77
13
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…
![](../../users/profiles/4701248.webp)
LH7
- 1,075
- 2
- 10
- 15
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 =…
![](../../users/profiles/836051.webp)
MichaelLake
- 1,695
- 14
- 15
10
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…
![](../../users/profiles/297201.webp)
David van Dugteren
- 3,238
- 8
- 31
- 47
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…
![](../../users/profiles/39532.webp)
mezoid
- 26,370
- 35
- 104
- 147
8
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{…
![](../../users/profiles/158008.webp)
James123
- 9,918
- 51
- 172
- 316
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…
![](../../users/profiles/836202.webp)
George Mamaladze
- 7,023
- 2
- 32
- 50
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…
![](../../users/profiles/550464.webp)
sada
- 491
- 2
- 8
- 19
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,…
![](../../users/profiles/61164.webp)
Erik Funkenbusch
- 90,480
- 27
- 178
- 274
3
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 .
![](../../users/profiles/562171.webp)
Joy
- 4,516
- 5
- 38
- 66
3
votes
1 answer
Jquery-Unobtrusive-Ajax Not Finding data-ajax-update
I have the following link in my MVC Core project:
![](../../users/profiles/4679174.webp)
willjohnathan
- 280
- 2
- 8