Questions tagged [ajaxhelper]

AJAX helper represents support for rendering HTML in AJAX scenarios within a view.

21 questions
6
votes
1 answer

Triggering event manually in JS Helper CakePHP

I stuck in a situation. I am using JS Helper. I used the following code. Js->get('#client_id') ->event('change', $this->Js->request(array('action' => '../ajax/get_client_location_and_process'), array('update'…
Arun Jain
  • 5,476
  • 2
  • 31
  • 52
2
votes
2 answers

AjaxHelper is not working

I am working on ASP.NET MVC. in order to use AjaxHelper, I inserted two javascript files in the site.master as following.
Kwon
  • 71
  • 2
  • 8
2
votes
0 answers

Why doesn't my MVC 4 View do Ajax posts?

This is my code: @using (Ajax.BeginForm(new AjaxOptions())) {
ManageOvertimesViewModel
@Html.LabelFor(model => model.Overtime.StartDate) @Html.EditorFor(model =>…
dvjanm
  • 2,351
  • 1
  • 28
  • 42
2
votes
0 answers

Using MVC Ajax with partial view and setting UpdateTargetId

A conundrum I am trying to solve looks like this: Say we have a view the displays a list of buttons, When a button is clicked it can do two thing: go to the next list of buttons open an edit form The entire from containing the list of buttons is…
Mortalus
  • 10,574
  • 11
  • 67
  • 117
1
vote
1 answer

Ajax calls without AjaxHelper in aspnet core 2

I was trying to implement an asynchronous call with ajax in my aspnet core 2.0 project, using "Ajax.BeginForm", but then I discovered according to these threads on github and stackoverflow that there's no support to this class in aspnet core, nor…
André M
  • 11
  • 3
1
vote
2 answers

AjaxHelper MVC6 vnext

i don't find the Ajax helper into asp.net vnext mvc 6. is it delete from project or replace by view component ? I search in the github repository and i don't see the file. may be to install an nuget package. I found the nuget package…
ced arm
  • 21
  • 4
1
vote
0 answers

ASP.NET MVC3: How to enable unobtrusive validation in a custom AjaxHelper

I have a custom AjaxHelper that renders an ajax-enabled dropdownlist. Code below. The helper works well, but it doesn't get the input-validation-error class added to it when validation fails, so it isn't highlighted with the other form elements in…
Paul Taylor
  • 5,651
  • 5
  • 44
  • 68
0
votes
0 answers

Using AjaxHelper outside razor files

I need to use the AjaxHelper in my "code behind" but I'm having trouble with creating a new instance. The constructor that I'd like to use looks like this: public AjaxHelper (System.Web.Mvc.ViewContext viewContext, System.Web.Mvc.IViewDataContainer…
Ninjanoel
  • 2,864
  • 4
  • 33
  • 53
0
votes
1 answer

Is there a way to define inner Ajax.BeginForm inside my aps.net MVC

I have the following code inside my asp.net mvc 4.0 web application. this view is a search view, which have search fields, and an Ajax.BeginForm to call the search action method:- @using (Ajax.BeginForm("AdvanceSearchIndex", "Home", new…
John John
  • 1
  • 72
  • 238
  • 501
0
votes
1 answer

Post an ASP.NET MVC page partially loaded with JQuery

So I’m working on an Advert listing page where I need to allow the user to add rooms to an advert dynamically without posting back the page. I want to do this with Ajax to reduce the amount of navigation required thus improving the UX. Initially I…
chrism233
  • 97
  • 10
0
votes
0 answers

What are helper functions in jQuery? Whats its significance in AJAX calls?

I was looking deep into AJAX calls and its stages. I got information about Helper functions. As I saw in jQuery official website they had started with three helper functions. But I am not convinced whey they are used. Please, anyone can guide me…
user3335796
  • 1,227
  • 1
  • 17
  • 24
0
votes
3 answers

When i using Ajax.Beginform() getting duplicate view , and whole form showing in targeted div

I am new to MVC,My MVC application showing duplicated view, i used ajax.beginform() method. i added jquery.unobtrusive-ajax.min.js as a reference in my layout page and correct version of jquery.js file still getting duplicated view. targeted div by…
Nitin Patil
  • 110
  • 10
0
votes
1 answer

When using AjaxHelper to retrieve a partial view, the embedded data is always the same

We use ASP.NET MVC 5's AjaxHelper and Ajax.BeginForm to request a partial view. That request also needs some JSON data in order to update a map control. The view rendering part of the process works great (a table body is replaced with the…
System.Cats.Lol
  • 1,620
  • 1
  • 26
  • 47
0
votes
1 answer

FormCollection parameter is empty while using @Ajax.BeginForm and html5 controls

I'm developing ASP.NET MVC5 project with boostrap, jquery, jquery UI. Submit is working fine but FormCollection in create Action is arriving empty in HomeController. I don't know what I'm doing wrong or is missing. PLease need help. Below snippet…
user2403459
  • 65
  • 1
  • 11
0
votes
1 answer

ASP.NET mvc Ajax Helper DropDownListFor send selected item value as parameter to controller

Problem I want my Ajax form to pass the value of the selected DropDownListFor to the controller but I can't figure out why the controller is not taking any value. I am working with ASP.NET MVC and I would like to stick with the helper functions as…
1
2