Questions tagged as 'ajax'

0
answers

Make graphic update without refresh AJAX / JS

I have a donut style chart where, until then, I used a simple SQL call in data , like this code below: data: <?php $mysqli = new mysqli('localhost', 'performance','46019725','db_intranet'); $sql = $mysqli->query("select disponibi...
asked by 11.04.2018 / 15:13
0
answers

Problems passing POST parameter through Ajax

I'm having trouble passing parameters via POST to my PHP methods. I have the JS variable properly populated with the attributes I want to pass. But when trying to access the variable in my PHP code it says it is undefined. I'm using Codeigniter...
asked by 11.04.2018 / 14:10
0
answers

Ajax function repeats on the page depending on the number of results returned from the query, what can it be?

Good morning the / I'm working on a Grails project that uses JavaScript to perform the search (both by category and by text) and pagination of items. However, after a few searches by category, the application slows down. In the javascript con...
asked by 05.04.2018 / 20:56
0
answers

Problem with mobile-only Ajax request

I have an Ajax code that takes data from a simple message field and sends it to my database without the page being updated, but the problem is that everything works perfectly just from the computer , when accessing the cell phone simply does n...
asked by 18.06.2018 / 01:51
2
answers

Reset Form after Submission

Good morning, I have a submission form, but the data stays on the inputs so I click to send ... how to reset the forms? Follow the code <?php header('Content-type: text/html; charset=utf-8'); define('SERVIDOR', '[email protected]...
asked by 10.04.2018 / 14:43
1
answer

Popular select of countries and states with php mysql ajax

I have 2 selects: #pais and #status. I want you to populate the state with only the states of that country, which are stored in a mysql table: tabela_paises id|pais 1|brasil tabela_estados id|idpais|estado 1| 1 |São Paulo the count...
asked by 29.03.2018 / 17:26
2
answers

Jquery - include variables in ajax

Before asking, I'll leave my script: Html </form> <input type="text" id="email"> <input type="password id="senha"> <button>Entrar</button> </form> Jquery var form = $('form'); var email =...
asked by 08.04.2018 / 20:48
0
answers

Custom on-demand loading

Hello everyone, I would like to do a load on demand, but I can not mount. Here is my code: function show(letra) { var itens = ""; $.ajax({ type: 'GET', dataType: 'json', data: 'action_search=yes&letra=' + l...
asked by 29.03.2018 / 01:15
1
answer

how to send an image to php through a hidden input = 'file'

I'd like to know how to send my <input type="file"> to php through ajax . I wrote the code but it does not call url php and it does not return error. html code: <button class="icon-overlay">Pesq...
asked by 02.04.2018 / 19:16
1
answer

Two Ajax Form on a single page with multiple items

I can make an Ajax request as follows: HTML <div class="resultado_debito<?php echo $i ?>"> <span class="ruim"><br>Inadiplente</span><br> <form method="post" id="quitar_debito<?php echo $i ?>...
asked by 02.04.2018 / 20:12