Questions tagged as 'ajax'

2
answers

Ajax nested requests

I need to make 2 requests $.ajax() nested, where the second depends on the delivered value of the first ... in other words the result of the first enters a loop and for each record found makes a new request . Something like this: functi...
asked by 29.10.2016 / 12:49
1
answer

HTML buttons do not work - Javascript - AJAX

I want that when selecting an image of the STATE column of a table I change the image / icon depending on what you choose in the modal created in Bootstrap with two buttons / Button1 or Button2 /. If your initial state collected from the databas...
asked by 18.11.2016 / 10:36
2
answers

Obtain a JSON object, sent as an ajax parameter, with asp.net

This is my js. $('#tablaDemo').DataTable({ processing: true, serverSide: true, ajax: { type: "POST", contentType: "application/json; charset=utf-8", url: "../P...
asked by 08.11.2016 / 18:42
3
answers

How to send data with ajax so that you do not have to reload the page for the changes to come out?

How about, I have an ADD button, which contains two fields, which are filled and the data is sent to the table in mysql and in the table below By clicking on SAVE to send the data I get this message, but I send it to another page, as I do...
asked by 03.11.2016 / 01:23
2
answers

Show view returned by my controller

I have my Petition. $.ajax({ type: "POST", url: "Estimates/ManageProject", data: JSON.stringify({ IdProyecto: dataItem.IdProyecto, Homologacion: dataItem.Homologacion, Cliente: dataItem.Cliente, Tipo...
asked by 15.09.2016 / 21:03
1
answer

formValidation error with remote validator

My main problem was that I was trying to get a true / false from the controller to check the existence of an item in the database, (you can see it here) . The error was resolved, then I saw that one of the users, of the questions that they sugg...
asked by 26.11.2016 / 07:16
1
answer

Recover fix in javascript and send it to php

I have a problem I can not solve, I have a form which contains a section inputs checkbox that are generated dynamically, the name of this input keep it as mail_2 [] my problem is how can Pick up that array in js to send it to php where the arr...
asked by 14.03.2016 / 22:35
1
answer

Assign unique name to a file with php

Friends I am uploading files to my server with ajax and php, what I would like is to give a unique name to the file I am uploading, in which part of the code can I do this, someone who could help me? $documento = $_FILES['file']; $data = a...
asked by 11.04.2016 / 20:21
1
answer

Failed to redirect in a promise

Good morning. I'm doing a script in which ajax performed a process of insertion in BD depending on what returns this function ajax I need to reload the same page or clean the form, if everything goes well continue with another function ajax i...
asked by 03.01.2019 / 07:51
1
answer

My form does not work in Hosting

I am working with a form using ajax. In local using wampserver makes my records successfully. I'm doing tests on a hosting and I do not do any operation. //codigo JS $(function(){ $('#registrar').click(function(){ var numcontrol = $('#numco...
asked by 03.06.2016 / 16:27