Questions tagged as 'ajax'

1
answer

Javascript does not receive json response from Laravel

I'm trying to get Javascript to get the data sent by the server and play on the alert. But it always comes undefined. I have already looked at many topics on the internet and found nothing wrong with the code. In theory it was meant to work. Can...
asked by 02.03.2017 / 17:45
1
answer

How to execute a php function in ajax?

I'm wondering how can I do to click a button and onclick this button I call a php function, they said that I have to use ajax, however I do not have ajax knowledge but I'm going to study, could you help me? <button id="loadmore" onclick="...
asked by 17.03.2017 / 15:23
1
answer

Querying BD after leaving the focus of the input and returning results without refresh?

I have a table that has about 30 input fields to perform a posting, for example: <input type="text" size="8" name="Codigo[]" placeholder="Codigo" maxlength="8" /> <input type="text" size="8" name="Codigo[]" placeholder="Codigo" maxlen...
asked by 17.03.2017 / 18:39
1
answer

Handling Exception in the Jquery Post

I have this function Javascript ( Post Ajax ) that when it gives exception in post it is passing if (r != "") { . I needed to capture that was an exception and treat it out of if . JavaScript function...
asked by 03.02.2017 / 20:10
1
answer

Upload does not reach PHP via AJAX with .serialize () function [duplicate]

I'm implementing a posting system on my future site where it requires uploading images. However when requesting with AJAX the PHP script returns an error stating that the "img-post" name of the $_FILES variable is missing. So I checked...
asked by 08.01.2017 / 19:01
1
answer

Uploading files and inputs of any type submitted with ajax

People I need help for the first time I can not put something into practice. I need to make a form containing <textarea> and inputs type text, number and crucially of type file be submitted to the server through AJAX. But I can not...
asked by 04.01.2017 / 01:36
1
answer

Error when calling ajax call

Hello, I'm trying to make the following ajax call: function salvarAposta() { var nomeApostador = $('#nomeApostador').val(); var jogosSelecionados = $('#tabelaFinalizacao tbody tr'); var valorAposta = parseFloat($('#valor_aposta')....
asked by 18.01.2017 / 17:27
1
answer

jQuery Ajax generating image error

I have the following code: <table class="table" id="historico"> <thead> <tr> <th>Hora</th> <th>Música</th> </tr> </thead> <tbody></tbody> </table>...
asked by 26.11.2016 / 15:22
1
answer

Execute function without refresh and return function data

I have the need to run a PHP function that will generate a zip file, write to the database if it was generated and the date. And right after returning the warning that was generated. At the moment I already have all created functions that do...
asked by 21.12.2016 / 12:30
1
answer

infinite scroll with msg when arriving at the end of the results

I'm starting now in javascript and ajax so there's a lot that I still have doubts I created an infinite scroll system but what I am not able to create is: when you reach the end of the column or (there is nothing else to display) You wa...
asked by 11.11.2016 / 00:01