Questions tagged as 'ajax'

2
answers

Console error when sending form data using Ajax

Friends please I need help I do not know why ajax does not bring me the result of the request when I send data from my form. If someone at least explain to me what is my mistake and what is it about? Thanks. What I know, is that when I send m...
asked by 16.07.2018 / 07:06
1
answer

What is the reason for this error in Ajax?

I'm working with ajax but I get this error and I do not know why it happens when I add an image to my ajax     
asked by 26.02.2018 / 02:13
2
answers

See if element exists in the php database

I'm trying that when the user leaves the focus of an input text it shows if that value already exists in the database or not, but it always throws at me that it exists. (The request goes through a controller but I omit it here), I feel that the...
asked by 15.02.2018 / 22:18
1
answer

How to know which user is logged in with ajax requests? [closed]

I have a problem with my ajax functions, I made a simple login with a request get to a REST server asking for the data of userName, password and id and I compare it with the entered data userName and password and if it matches one it redirects m...
asked by 04.04.2018 / 09:33
2
answers

Show table in HTML with Ajax and Json

I have the following JSON object and would like to show it in an HTML table: { "data":[ { "0":"328", "tr_id":"328", "1":"USE", "tr_oficina":"USE", "2":"4", "num_ofic...
asked by 11.03.2018 / 02:45
1
answer

Time it takes to load a table with Datatables

I was doing tests with a table with 2,000 records and datatables worked fine, now I change it with another one that has 16,000 records and after 7 seconds gives error. In the debugger I see that the select became complete (the 16,000 records)...
asked by 06.02.2018 / 18:04
2
answers

Token CSRF Symfony

I am sending a request by ajax to a controller and this error is generated    ERROR: The CSRF token is not valid. Please try to send the form again. Form {{ form_start(form, {'action': path_with_locale('general_alerts'), 'attr':{'id': '...
asked by 23.01.2018 / 23:18
1
answer

send two data in a select in laravel

What happens is that I want to send two parameters by means of a json in ajax to the laravel driver, but I do not have the slightest idea of how to select to receive the parameters, I would like them to help me with it Here I leave my driver cod...
asked by 19.02.2018 / 21:12
1
answer

Get data from ajax

I'm trying to get data through ajax and php. What I'm trying to do is have a list of several ids and that ajax shows them to me dynamically. My client wants to see a list of messages by clicking on each one, something like the icloud inbox. J...
asked by 07.01.2018 / 05:34
2
answers

Problem calling javascript function does not return result generated by ajax

I have a problem that I can not solve, it turns out that I want to call a function which after doing an insert in mysql returns the id, that makes it perfect, but my function never manages to receive the result despite the id by console It comes...
asked by 07.01.2018 / 19:12