Questions tagged as 'ajax'

1
answer

Call php function using onblur (complete)

I have an onblur event to call a function and this function has to call a php class to be able to compare what was typed in the input with what is in my DB, but I do not know how to do that using jquery, how do I do this? HTML <html&...
asked by 07.12.2018 / 23:48
1
answer

Make Script work in loop

As I'm not aware of javascript I need a help on how to make this script work in the loop. His problem is that auto complete only works on the first line. if we add another line it will no longer work. Run the script and test you will see t...
asked by 30.09.2018 / 21:22
3
answers

Ajax PHP Query Return

How do I get the PHP query values in AJAX? AJAX $.ajax({ type: 'post', dataType: 'json', url: 'listaGabaritosSelecionados.php', success: function(url){ $('.retorno').html(url); } }); PHP $mysqli = new mysqli("l...
asked by 11.09.2018 / 13:12
2
answers

Prevent multiple submissions with jquery

I have a table with several users, each line has a Button to delete that particular record, I have the following code: $('body').on('click', 'button[name="btn-delete[]"]', function (e) { e.preventDefault(); var action = $(this)...
asked by 10.09.2018 / 15:26
1
answer

Save Field Record Text Disabled AJAX + PHP

Friends, good morning! I have a form in php where I have to perform maintenance, but it was not me who developed it, the old analyst is no longer in the company. In this form, there is a field where the person types a locator code (company...
asked by 16.10.2018 / 16:00
1
answer

How to send two integer parameters to an Asp.net MVC Controller using Ajax

I have a composite key table (PersonId and ProfissaoId). The PersonId property is in a hidden and ProfissaoId gets accumulated in a data-id. Stays two information must be passed to the controler so I can delete the record. Currently, I have this...
asked by 21.09.2018 / 23:28
1
answer

Return a JavaScript variable and PHP content - AJAX

I want a script in ajax that on the page I return the content to write in a div and a variable to use in the link of tag "A". <a href=" escrever a variável aqui Y ">volta</a> <br> <div> escrever a conteudo...
asked by 20.08.2018 / 00:09
1
answer

Ajax request to an API

I'm trying to make the request to a third-party API via the following code: <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js"></script><script>$(function(){$.post({url:url,contentType:"application/json;...
asked by 09.08.2018 / 03:29
1
answer

AJAX function to update table

I have this function in AJAX to update the data of a table, the data is coming correct from the controller, however it does not update with the correct data, it updates blank. function buscaFornecedores(id) { var url = "/Produto/BuscaFornecedor...
asked by 08.08.2018 / 19:00
1
answer

AJAX updating the wrong table

I have this AJAX function to update a table, it looks like this: function incluirFornecedor(idItem) { var url = "/Produto/incluirFornecedorN"; $.ajax({ url: url , data: { id: idItem } , type: "POST" , d...
asked by 09.08.2018 / 16:20