Questions tagged as 'ajax'

1
answer

Submission Ajax - Enter

How can I make a submission with ajax using the enter key? That is, I have the following code: var nome = $("#nome").val(); jQuery.ajax({ method: "get", url: "teste.php", data: { "nome": nome },...
asked by 17.09.2017 / 14:04
1
answer

How do I echo PHP to Ajax? Login System

I'm working on a sign-in system that warns the user if the username already exists in the database. Basically I have a popup window on the same page where the input fields are for both login and user registration. The idea was to submit the fiel...
asked by 28.06.2017 / 19:00
1
answer

Ajax reload div

I have a page that displays with Ajax database information inside the div #addremoveprod, so everything is fine, everything is printing perfectly. I have also got in a part of the code a function to delete the queries made in the database (al...
asked by 15.03.2017 / 16:10
1
answer

Split whole text into javascript chunks

Good afternoon guys from stackoverflow I'm having to split the text I get from a return from an ajax. This my return has the following pattern It starts with what will be the value, the rest will be the content of an option, ending in the...
asked by 24.03.2017 / 18:08
1
answer

Datatable with JSON

I'm doing a datatable with ajax return. $.getJSON("sql.php?operacao=usuario_lista&excluidos=false", function (data) { alert(data.users); $('#tabusuarios').DataTable({ "aaData": data.users, "aoColumns": [...
asked by 25.01.2017 / 19:49
2
answers

Filter with AJAX + PHP

Within my system, the user logs in, some information fetched from my database is shown, the function that searches the data and how it is listed follows:    Function # função que busca os dados de originação no banco function listaDadosOri...
asked by 08.12.2016 / 17:31
2
answers

Jquery problem in handling ajax data coming as array

My array returns from php like this (post): Array ( [0] => Array ( [O email digitado é invalido! Por favor insira um email correto.] => 1 ) [1] => Array ( [O telefone digitado e...
asked by 24.11.2016 / 17:01
1
answer

Null value is going to ajax error function - ASP.NET MVC

I am developing a CEP query page where the information is sent and returned in ajax: $.ajax({ url: "@Url.Action("PesquisarCEP", "CEP")" + "?cep" + retirarMascara($("#dsCEP").val()), type: "GET", success: function (retor...
asked by 19.08.2016 / 17:26
1
answer

Why do I have to use FormData to send files via Ajax?

I created an HTML page with a form, and in it a imput file and a hidden field, all of them with the name attribute. <form id="meuForm" action="..." method="POST"> <input type="hidden" name="itemId" value="1" /> &...
asked by 06.09.2016 / 22:08
1
answer

How to verify modal closure

Via Ajax I register items in the database and return a certain value to the user through a modal using innerHTML . Then the html of the modal is filled with the values that I pulled from the bank. I put a .gif...
asked by 07.07.2016 / 20:48