Questions tagged as 'ajax'

1
answer

how to take a data from a json object in ajax

I have this code to create a table and insert the data of the type json array: $.ajax({ url: '<?php echo base_url(); ?>index.php/Manager/metricsAdvocates', type: 'post', data: {'sup':sup, 'dateM':dateM}, dataType: 'json...
asked by 22.03.2018 / 18:26
2
answers

Asynchronous javascript calls and asynchronous task .net

In my work a colleague made a statement, he said that it did not make sense to do an asynchronous method in c # if in ajax . What would be the advantage of having an asynchronous call in
asked by 20.07.2016 / 18:05
2
answers

AJAX - Load values of .php in a select - Provinces

I have to load the provinces, they are in an .sql file that I load in the phpmyadmin, in a select within a formulario . The form has a select are the following information: <tr> <td align=right>Provincia:...
asked by 05.06.2017 / 15:41
2
answers

Dropdown with select2 and jQuery ajax

I am having problems trying to fill a dropdown (select) with select2 from a remote resource: I fixed my backend code so that the API returns the following JSON code: [ {"id":9,"nombre":"Jose"}, {"id":10,"nombre":"Juan"}, {"id":11...
asked by 18.10.2016 / 20:35
1
answer

Using Ajax.BeginForm MVC 4 aspx c #

I'm a novice with MVC 4 My question is; How can I send all the information that the user captured in HTML to a function of my controller ?. That this function inserts my data sql server with Ajax.BeginForm there are n...
asked by 01.07.2016 / 18:25
2
answers

How to validate so that there is no Na in a field?

I have the following function that is sent to call when I enter the page, but at that time I still do not have the variables full with values, since they load up to fill a few combos and reload the page. The first time you enter, the field...
asked by 12.09.2018 / 06:27
2
answers

Passing data from a table in HTML to an insert in Mysql with PHP

I hope you can help me. What happens is that I have a table in HTML that I am generating with javascript, but the result that it gives me, I must save it in a table that I have in my BD HTML Table: I already tried going through th...
asked by 14.08.2018 / 22:13
1
answer

Send image with Ajax

How can I send an image through ajax? The code I have is this and for now it only sends text, how could I take the image of <input type="file" id="foto"/> and send it? My code: function updateProfile(){ var name = $("#na...
asked by 03.12.2017 / 22:23
2
answers

How to generate a condition in javascript to deny access to a function?

Well, I am trying to create a condition where if a select element is empty, deny the call to a function made in ajax, but my problem is that I do not know exactly how to create that condition. Here is my code attempt. function LimpiaEstado() {...
asked by 08.09.2016 / 02:07
1
answer

Data table with AJAX C # ASP.NET SqlDataReader

Hi, I'm working with ASP.Net / SqlDataReader / C # and razor I have the sig. complication ... I'm trying to show a table using AJAX but I'm not sure I'm doing it right, so I understand I have to make a method for my query to be stored in a list...
asked by 03.10.2017 / 23:17