Questions tagged as 'ajax'

3
answers

Interpret data from an external file to use in Autocomplete

I have the following file: index.php       <script type="text/javascript"> function montaAutocomplete(source) { $( function() { var availableTags = [ source ]; $( "#autocomplete" ).autocomplete({ source: avai...
asked by 31.08.2017 / 15:22
1
answer

Capturing the date of the input type date

I have one <input type="date" class="form-control" name="data"> In Jquery I need to capture that date and then send it to DB var data = $("#data").val(); But the value only returns 'undefined'. How do I get the value of an input...
asked by 10.01.2018 / 12:56
1
answer

Show result JSON via Ajax

I'm not very knowledgeable about javascript, but I need to integrate a payment API. I've never done integrations with any API before. Following the documentation I saw that you first need to generate a transaction token. So I have this...
asked by 16.08.2017 / 20:01
1
answer

$ _GET does not catch "+"

I'm retrieving a value from an AJAX request, it works fine however it has a problem. The "+" character is replaced by a blank Dell printer (supporting eSF 2.1+) Stay Dell printer (supporting eSF 2.1 ) And this is giving "bomb" in the s...
asked by 16.08.2017 / 15:59
1
answer

Jquery Chosen not returning value

How to get chosen to display search value. It is not showing the options inside the select. HTML <select id="habilidades" name="habilidades[]" multiple class="input col-lg-10 chosen-select margem20" required> </select>...
asked by 01.08.2017 / 16:01
2
answers

Execute document and send variable value in PHP by Ajax

Hello, I have to develop a confirm button for deleting a product. For this, I had the idea to execute a file in php through ajax from the moment I click on "Confirm" in the JS confirm together, passing the value of a variable that will serve to...
asked by 02.08.2017 / 21:24
1
answer

I can not succeed in making a request via ajax

I get in my JS the month that the user chose in the HTML select, if in case the month value was set it executes the Filtration_Database function according to the value, otherwise I define that the value will be "m" but it does not makes the requ...
asked by 24.08.2017 / 19:24
1
answer

if (isset ($ _ POST ['send'])) does not work with Ajax

I am sending information to another page via Ajax: <script type="text/javascript"> //Função para enviar as informações para o arquivos processa.php //via Ajax function envia(x){ jQuery('#form_protocolo_' + x).submit(functi...
asked by 18.07.2017 / 14:34
2
answers

Notification button update

I have a notification button in my software where I wanted it to automatically update itself. Then I made the following code: setTimeout(mostrarNotificacao, 90000); function mostrarNotificacao(){ //function mostrarModal(idPedidos){...
asked by 18.05.2017 / 04:30
2
answers

Getting URL Variables in One Page, and using in another

I have a link in which I get the parameters in the url completely, in case it points to an HTML where I have my inputs, and I get the URL with the parameters, what I need and get the variables from that URL and use it on another page when giving...
asked by 24.06.2017 / 02:08