Questions tagged as 'ajax'

0
answers

Get ID inserted by Ajax

I have a function that includes a register, and when adding I call another function, in this other function I need to pass the last included ID, how can I do this? function SalvarHorario() { //NomeHorario var nome = $("#Nome"...
asked by 28.05.2018 / 13:53
1
answer

Specific image in a modal window

I have a code that takes all the images in a directory: <script> var folder = "img/"; $.ajax({ url: folder, success: function (data) { $(data).find("a").attr("href", function (i, val) { if (val.match(/\.(jpe?g|pn...
asked by 24.05.2018 / 01:13
0
answers

Updating Table

I have a form that receives all the data from the database and has the option of deleting that desired data. I would like to know if there is any way that when the user clicks Delete the page would already update with the new table.     
asked by 08.05.2018 / 17:51
2
answers

Request via GET

I'm trying to create a search system using a Request to get the search result. I am not able to bring the product data for the searched title. Whatever the searched word, it always brings me the last item in the product table. Search or...
asked by 10.06.2018 / 23:43
0
answers

Send synchronization request with ajax

I am using Ajax to send data via POST, the "problem" is that I do not want it to be sent asynchronously in the background, I would like to send with the same behavior as a form submit, I added the option: async:false but nothing has chang...
asked by 05.05.2018 / 21:13
0
answers

Confirm jQuery running 2 times

Hello, I have a code that "enables and disables" users. This: HTML <button type='button' class='btn btn-success btn-circle ativar-gestor'> <i class='fa fa-check'></i> <input type='hidden' value='{$dados['Id']}'...
asked by 15.05.2018 / 16:52
1
answer

Help with Ajax and FORM Requests

I'm using the form below to search for products ... <form action="prod_index_consulta.php" enctype="multipart/form-data" name="busca" method="post"> <span>Busca Avançada</span> <a class="search" id="<?php echo $...
asked by 10.05.2018 / 00:21
1
answer

How to pass a parameter from laravel to jquery

Well, I have a button that when clicked should open another page, loading via Ajax the results of the bank. The problem is that I have to pass an id by that button to the Ajax request. Making an analogy is like a button that would load a page wi...
asked by 07.05.2018 / 23:51
1
answer

How to send the value of a radio with the user id concatenated?

Good morning my doubts and complex is creating a system that will create card of each registered user, to differentiate the cards each element of the card has the id of the user. I would like to know how to capture the value of the selected radi...
asked by 14.05.2018 / 11:54
1
answer

Error sending ajax request

I'm doing a registration via ajax, and I'm getting the following error: Request header field X-Requested-With Access-Control-Allow-Headers in preflight response. Do not register, follow my codes: var dataString = $(this).serialize();...
asked by 14.05.2018 / 15:13