Questions tagged [unobtrusive-ajax]

Question regarding Microsoft jQuery plugin for Unobtrusive Ajax

107 questions
0
votes
2 answers

unobtrusive Ajax is preventing onsuccess from firing in MVC5

I have an Ajax call that works just fine when I do not have the unobtrusive Ajax script referenced. When I add it to the page it prevents the onSuccess Javascript from firing. When trying to render a partial view with the script referenced…
Yecats
  • 1,715
  • 5
  • 26
  • 40
0
votes
1 answer

Action template not rendering after an ajax call in Rails 3.2.13

I would like to perform an ajax request by passing some data from the browser (some text values as a string) and render view of the same action to which I am sending request using ajax. My workflow goes like this: User upload two files :calib and…
0
votes
2 answers

unobstrusive ajax call not reaching onfailure, statuscode output in console instead

I am using ajax unobtrusive and when it gets to my custom authorization tag the status code is set and I have json data ready to go but when its returning the information the status code is caught in the console and saying for example,"Failed to…
imGreg
  • 900
  • 9
  • 24
0
votes
2 answers

MVC 5 Ajax Form

I'm using Ajax.BeginForm helper. It works well but I have a small issue. Here is the code:
@using (Ajax.BeginForm("SomeAction","SomeController",new AjaxOptions{UpdateTargetId="pdiv"})) { ..... }
I've set the…
Ashish Charan
  • 2,347
  • 4
  • 21
  • 33
0
votes
1 answer

MVC unobtrusive AJAX, returning Json data, and IE

So there are lots of questions out there about this whole "IE opens a download file dialog for Json data returned via Ajax" (like this one or this one), but I have not found any answers for those who use Unobtrusive Ajax. We do a simple…
John Washam
  • 4,073
  • 4
  • 32
  • 43
0
votes
1 answer

Form element access in unobtrusive ajax event

I'd like to hook into a ajax callback for a specific form that's using unobtrusive ajax. The ajax call is no problem with this standard form using unobtrusive ajax:
Sam7
  • 3,382
  • 2
  • 34
  • 57
0
votes
1 answer

why jquery and ajax unobtrusive send multiple Post to server

I have a little problem with jquery and Microsoft Unobtrusive libraries. I created a View with many PartialViews, and in one Partial a button displays a popUp, when I do submit in the popUp, it sends multiple POST to the server. This is my code: The…
0
votes
1 answer

Simple MVC4 unobtrusive ajax not working

I am writing a very simple MVC4 test page and unobtrusive Ajax does not seem to be working. When I click my submit Button the page is not submitted. I have a breakpoint is VS and can tell there is no request. I am using Firefox and when I click…
Don Chambers
  • 3,798
  • 9
  • 33
  • 74
0
votes
1 answer

ASP MVC 4 Ajax.ActionLink for delete using AntiForgeryToken

I have a number of index pages where the row has an actionlink like so @Ajax.ActionLink("Delete", "Delete", "AdverseEvent", new { id = Model.AdverseEventId }, new AjaxOptions { HttpMethod = "Post",OnSuccess = "rowDeleted",…
Brent
  • 4,611
  • 4
  • 38
  • 55
0
votes
1 answer

What is the alternative of ajax.beginform and unobtrusive-ajax.js for partial refresh?

I have used Ajax.Beginform, and unobtrusive-ajax.js at various places in my application. This was all working fine until I was using JQuery 1.7 libraries. However, after upgrading them to JQuery 1.9.0, this stopped working, I also upgraded version…
Nirman
  • 6,715
  • 19
  • 72
  • 139
0
votes
1 answer

ASP.Net MVC - Client side validation breaks after a partial refresh?

I have a page that contains a search bar, and on default it displays a list of items below. Each item is wrapped inside an ajaxform so that the user can update the quantity. The client side validation works perfectly fine on page load, and it…
0
votes
1 answer

Wiring up Ajax.BeginForm that didn't exist during doc.ready?

I have a MVC page that loads a Partial via a Ajax.ActionLink, which works, and then the loaded Partial contains a form that has Ajax.BeginForm. This form is not getting wired up to unobtrusive ajax, and instead is performing a page refresh(I…
AaronLS
  • 37,329
  • 20
  • 143
  • 202
0
votes
1 answer

How to get immediate effect while using unobtrusive ajax in mvc 3

I'm trying to introduce some unobtrusive ajax in my simple blog site, there is a viewpost page, where I want the comment to be ajax enabled. I can post the comments by using ajax, but that comment not showing instantly, page needs to be refreshed…
Badhon Jain
  • 197
  • 1
  • 12
0
votes
2 answers

Calling Remote method conditionally from view for validation in MVC4

I am updating an MVC2 application so that it works in the new MVC4 paradigm. I am trying to figure out how one would call a method to validate an input field with unobtrusive ajax? I need to figure out if a certain value is unique in the database…
SoftwareSavant
  • 9,467
  • 27
  • 121
  • 195
0
votes
1 answer

MVC 3 Ajax.BeginForm submit issue

im trying to submit a form by pressing a button that eventually will refresh the table this is the form : @{ AjaxOptions ajaxOpts = new AjaxOptions { Confirm = "start ???", UpdateTargetId = "MainTable", InsertionMode =…
MIkCode
  • 2,655
  • 5
  • 28
  • 46