Questions tagged as 'ajax'

0
answers

PHP does not display array data!

Friends, good night. In my code, I submit the following: function cadastrar(){ var t = 0; var nome = $$("#nome").val(); var cpf = $$("#cpf").val(); var tel = $$("#telefone").val(); var end = $$("#endereco").val(); var m...
asked by 01.07.2017 / 23:21
0
answers

Unexpected token in JSON at position 0 at JSON.parse (anonymous)

I'm trying to make the searchable data in a given main page text field appear without refreshing the page through AJAX. window.onload = function(){ document.getElementById("boxsearch").onkeydown = function(e){ if(e.keyCode == 13){...
asked by 26.06.2017 / 00:08
0
answers

jquery ajax issues

I have a problem that is as follows: In my system I have a combo that serves as a parameter to load (via ajax) a second combo, this works normally. Then, when clicking on an item in a table, the first combo is updated and based on the sele...
asked by 26.06.2017 / 05:05
1
answer

Results of disordered requisitions

I have 1 textarea with several lines, each line of this textarea I have data to make a post request in a single url, it checks each line and sends me the result on the screen via jquery, the problem and that the results that are printed in the s...
asked by 11.07.2017 / 17:51
0
answers

Security request AJAX

Do you know how to get more security when sending data via AJAX? As the data will be sent by the customer, I want to avoid fraud, etc. Today I can do the following function: console.log("funcoes lancamento"); $(document).ready(function()...
asked by 22.06.2017 / 22:26
1
answer

insert comments without refreshing the page

Can someone help me insert comments into my database and then show them without refreshing the page? HOME.PHP <!-- BIBLIOTECA JQUERY(OFF-LINE)--> <script src="JQuery/jquery-1.11.3.js"></script> <!--JAVASCRIPT--> &l...
asked by 28.06.2017 / 19:02
1
answer

Dynamic Combobox Ajax Codegniter

Hello I've already looked this question and did not answer me . I have a select called Bank, as below and brings me the result OK: <select id="banco" class="banco form-control" name="sel_banco_id" > <option value="0...
asked by 28.06.2017 / 01:07
1
answer

Jquery returns "0" in div

I have a ajaxForm function that searches some data in the database and should return the HTML result in a div. The problem is that when I inspect the page the return is correct, but in div only the number "0" appears. Can anyone he...
asked by 27.06.2017 / 18:52
1
answer

Ajax function with php is not working

I have this code plus ajax does not have a value $.ajax({ url: 'php/vizCliente.class.php', type: 'POST', data: { update: '1' }, cache: false, datatype: "json", error: function(e) {...
asked by 22.06.2017 / 02:59
0
answers

I can not get into the success json function

Dai guys .... I'm not able to pass the return of my code to the function success of my ajax via json .... I'm using codeiginiter, php, mysql .... someone you can help me .... it's been almost a week since I'm trying and I do not unpack ... My...
asked by 29.06.2017 / 03:53