Questions tagged as 'ajax'

1
answer

send all values by ajax

What I try to do is send the response of a request but I do not receive the values of the array I only receive the word array // js file where I get the answer $(document).ready(function(){ //alert("hola"); let selectCards =$('#card...
asked by 30.10.2018 / 16:34
2
answers

Convert query to JQuery and ajax

Hi, I have an MVC project and I'm using a server's database. In the project I do the consultations with javascript, and it happens that I have an input to select the date in a calendar and an option to select the name of a user already loaded fr...
asked by 18.10.2018 / 18:56
1
answer

ERROR when sending variable to php and capturing php array in jquery

I'm doing a car complete with jquery, php, sqlserver. I send a data to the file search-client.php with ajax but I can not get any results back and I can not see any kind of error in the browser. JQuery code $(document).ready(function(e)...
asked by 25.10.2018 / 14:34
1
answer

Validate a DNI - NIF in PHP

Continuing with the registration of clients, I have to validate if the DNI or NIF exists, and I would like to know if it can be verified if the DNI or NIF is correct. I would also like the fact that in the input I put a mask with the fields that...
asked by 07.09.2018 / 12:06
1
answer

Auth :: id () using ajax returns null Laravel 5.5

It happens that I am showing a content in a datatable and making the relevant settings so that only the content of the logged in user is shown to me, so I use a method in my controller that returns the records associated to the user that is logg...
asked by 06.09.2018 / 15:27
1
answer

Problem when inserting data with ajax

My problem in itself is not inserting data, given that these are done successfully, the problem is that when you insert a data, it is repeated 2.3 or even 4 times in the database, another thing is that when entering the page and doing it for the...
asked by 10.09.2018 / 17:44
2
answers

Execute javascript code inside a script called with ajax

I need to show an alert and stop the execution of the script when the user clicks on the accept button when he does not select any week to pay, this is the ajax function: $('#sub').click( function() { $("#update").submit(function(e)...
asked by 04.10.2018 / 00:52
0
answers

By clicking I send several records to the BD

Good day, I have infinite scroll to bring the answers from the database and in each answer I have a button, but as I scroll to get more answers, there are some answers that by clicking on the button I saved two records and when you reach the las...
asked by 12.09.2018 / 22:33
2
answers

Does not return the AJAX response

Good I have a registration form in which they fill in the data and through AJAX I insert the data in the database. Until then it worked perfectly and I returned a response in notification mode with TOAST. But when putting in the file that als...
asked by 04.10.2018 / 09:00
1
answer

How to send data in JQuery ajax safely?

I send data through jquery $.ajax to the server and now that I have to send the id of the user I thought that this is not very safe ... since anyone who goes to source code or to inspect the code can see perfectly the variables, their val...
asked by 29.08.2018 / 15:55