Questions tagged as 'ajax'

3
answers

Problem with onkeyup in input

I did a little JavaScript function to do a dynamic search in the database without giving refresh and it is working, but I think there is a problem with onkeyup . When entering text in the input field and then deleting this text,...
asked by 08.07.2017 / 15:13
2
answers

Javascript variable value assignment

I have the JS code below and the JSON return does not assign the value to the variable texto . I ran a test with alert(data.frase) and the message came normally. Does anyone know why var texto does not get the value of...
asked by 29.03.2017 / 17:32
2
answers

Pass an array of objects via AJAX per POST and read the properties of objects in PHP

I'm having some problems solving this situation. I'm trying to pass my array of objects via AJAX to another page in PHP and read the properties that are inside each object within that array. For you to try to understand better I will post the co...
asked by 02.04.2017 / 02:07
1
answer

Get Object in JSON

How can I get only the "name":"josimara" property in this code ajax , I'm new to this area, thank you for the help. <script src="http://www.habbid.com.br/assets/js/jquery-1.9.1.js"type="text/javascript"></script> &l...
asked by 03.10.2017 / 20:03
4
answers

Ajax does not recognize the echo of PHP [closed]

I have a simple ajax: $.ajax({ url:"php/exemplo.php", type:"POST", data:new FormData(this), contentType:false, cache:false, processData:false, success: function(resposta){ if(resposta == '<nome>'){...
asked by 29.09.2017 / 22:24
2
answers

How to store AJAX return to use as a parameter of another function

Main function, which will return the value chave = data.chave : var chave = ''; $scope.submitForm = function() { $http({ method : 'POST', url : 'validar.php', dataType: 'json', data :...
asked by 10.01.2017 / 03:44
1
answer

Animation during ajax request

Personally I have an ajax request, only that it is taking a little bit, it only me of the return when successful or not, but during the request I do not show the user how is the procedure. As I do so, while the request is made, I show one animaç...
asked by 17.05.2017 / 20:58
1
answer

click () does not recognize button dynamically inserted inside tr

I dynamically insert items into a table using the following function: $("#inserir-item").click(function (){ ... $("table#tb-itens tbody" ).append(retorno); } The return variable contains something like: "<tr id="tr-22-2222" ali...
asked by 09.05.2017 / 22:22
1
answer

How to make a select html load a list of options each time another select change selection?

I need to have a select load a list of option each time on a previous select change of selection. I know I will use JavaScript to do this, but how? Follow the code: <b>Área:</b></td> <select name="area" id="area">...
asked by 30.03.2016 / 17:08
1
answer

Get value from a specific input using AJAX

Next, I have a form that will be sent with AJAX, however the URL will vary according to the ID, eg: site.com/ajax/remove/100 <- ID site.com/ajax/remove/200 <- ID This value of the ID is in a hidden field of the form, how can I get thi...
asked by 15.11.2016 / 00:28