Questions tagged as 'ajax'

1
answer

Load a TEXTAREA field from a SELECT with Jquery

I have a modal that does email sending. But I created some email templates in the mysql database. On the screen appears my select with all templates for selection, only I would like when the template is selected, it filled in the input subje...
asked by 01.07.2018 / 07:39
1
answer

Update PHP variable with Jquery using AJAX request

I have a problem related to HTML, Jquery and PHP, I will try to get as much information as possible. I have a PHP page that has to go back and forth with the variables and it's kind of a step by step, where each step sends its data to the next t...
asked by 12.05.2018 / 05:46
1
answer

Clear modal after inserting record in database with php and ajax

I'm saving a record inside the MYSQL database with AJAX . The problem is when I insert a new record with the modal. It brings up the record I entered earlier. How can I make the modal after registration clean? Modal HTML <!--...
asked by 04.06.2018 / 14:20
1
answer

How to display PHP errors using Ajax and JSON?

You know those error messages that PHP returns when we write some wrong code or, for example, we call some variable that does not exist, or try to include include in a nonexistent file. When we make an Ajax request without using JSON and ask it...
asked by 08.05.2018 / 22:31
1
answer

Add and remove select with button

I'm developing a form in which I have a select that chooses states and capitals from Brazil, but since whoever fill can add more than one select I need to make a add another select button, as I'll save the selected values, is that in case I am p...
asked by 03.05.2018 / 19:43
2
answers

Help with Ajax requests to retrieve DB data

I am currently using this Code below to search for the page with the products for the requested tag. echo '<a class="marca" href="prod_index_marca.php?codmarca='.$res['codigo'].'">'.$res['nome_marca'].'</a>'; But I'm trying to c...
asked by 04.05.2018 / 12:20
1
answer

Instead of the ajax command staying on the page, it is being directed to php page

$('#formCadastrarProdutos').submit(function() { $.ajax({ url: '../crud/cadastro_produtos.php', type: 'post', data: new FormData(this), cache: false, contentType: false, proce...
asked by 10.06.2018 / 00:34
1
answer

Multilanguage page without formatting

I have a multilingual website using Ajax , but when I put it to change the language, the page does not overlap formatted. www.csvet.com.br By clicking on the US flag in header the error appears.     
asked by 15.04.2018 / 00:08
1
answer

Buttons generated by foreach only execute ajax in the order they are displayed

Hello! I am using an ajax on a button so when I click on it it submits a form, the button then changes from VALID to VALIDATED, all without reloading the page. Here is the code: $('#validar_form').submit(function(event){ $.ajax({ url:...
asked by 26.04.2018 / 16:24
1
answer

Ajax does not work with Modal Bootstrap

Hello, I have the following code, where Modal Bootstrap opens from a DB lookup when I click on an item in the returned list: <input type="text" name="pesquisa" id="pesquisa"> <table class="resultado"> </table> S...
asked by 06.04.2018 / 18:16