Questions tagged as 'ajax'

1
answer

Convert Json to Array with Jquery

I am making an ajax request with jquery and Php like this: // arquivo php $json = array( "status"=>"true", "message"=>"inserido com sucesso" ); echo json_encode($json); . // arquivo js $.ajax({ ur...
asked by 26.05.2017 / 02:28
2
answers

POST locks the script and does not execute the code after submitting the form

I have a problem at hand. I have a credit card form, where the customer will fill out the data and be submitted to the bank's evaluation. However, it should run some operations before from reaching the function that will send its data to the p...
asked by 15.05.2017 / 16:26
1
answer

List data with Ajax and PHP

I have the following table <?php foreach ($this->views->clients as $client): ?> <tr class="tr_<?= $client['id'];?>"> <td><?= $client['id']; ?></td> <td><?= $client['name'];...
asked by 20.04.2017 / 19:42
1
answer

jQuery Store one item at a time

I have following code. There are several options But only one option I would like to disagree with Click on one to check on another Finally when I find the option I want, then click on the "Unbind" button And just disagree w...
asked by 19.05.2017 / 17:23
1
answer

Ajax receiving array that should not

I'm putting together a popup form, so I needed to use Ajax for authentication. It happens that when I type an already registered e-mail it shows me the message correctly (E-mail already registered!), But when I put an e-mail not registered, it f...
asked by 28.03.2017 / 21:48
1
answer

How to prepare the contents of a JSON for download?

In a certain area of my site, the user can select a few rows from the database to export them to a JSON, after selecting all that they want an Ajax call is made to get the data of the same, however inside the return How do I download it? For exa...
asked by 28.03.2017 / 17:45
2
answers

Send value of a Javascript variable to PHP

I have searched a lot and done many tests but I am not able to send the value of a Javascript variable to a PHP variable. My case is as follows: I have a real estate portal and would like to get the information (more precisely the real estate...
asked by 18.04.2017 / 03:22
1
answer

Synchronize data offline with Phonegap

A situation arose that I need to synchronize data from an App, but the device does not always have connectivity because it is used by a street vendor. When it has connectivity, it saves directly via AJAX but when it does not have the problem....
asked by 17.04.2017 / 17:02
1
answer

Error receiving JSON from variable

That way I can retrieve the values: var unidades: "101|102|103|104"; function getValue(key, array) { for (var el in array) { if (array[el].hasOwnProperty(key)) { return array[el][key]; } }...
asked by 24.03.2017 / 17:13
2
answers

Error converting Array in Ajax to Array in PHP

I'm having an error while trying to pass an array from ajax to PHP and can not find a solution, based on this statement, but I could not get it to work . HTML: <tr id="<?php echo $produto['idarquivo']; ?>" > <td><i...
asked by 09.03.2017 / 16:22