Questions tagged as 'ajax'

1
answer

Display real-time data [duplicate]

I'm trying to display data taken directly from my database with this script : <script> setInterval( function contaUser(){ document.write,("<?php $sql = "SELECT Count(id) as c FROM tb_usuari...
asked by 20.08.2018 / 15:03
1
answer

Checkbox sends 'on' when serialized

I have an html form that I send the data via ajax like this: function showValues() { $.ajax({ type: "get", url: "/Home/salvaItem", data: $("form").serialize(), success: function (data) { $("#results").text(data); }...
asked by 10.01.2018 / 12:56
1
answer

Problem passing value to PHP variable with Ajax

I know it must be a frequent problem and everything, but I searched in several places and could not fix my problem: In the project I'm working on, there's a javascript function in which a variable called codigo gets a certain value....
asked by 12.01.2018 / 00:15
1
answer

How to return balance automatically with AJAX without post

I'm trying to do a function that returns the result of an expression. Example: I want to distribute a value informed by the months of a year. Example: 120,000 = Jan / 10,000 Feb / 10,000 etc. However, if the user changes any month more...
asked by 12.12.2017 / 14:50
1
answer

ajax counter and save in bank

I have a list in a table and put a column to display the amount of clicks when clicking. But how could I mend the value coming from the bank and save. Would it be by ajax? If so, how would I do it?? Below the code to get an idea....
asked by 07.12.2017 / 20:47
1
answer

How to insert data from a form made in Angular2 in a Database?

I'm starting to learn Angular 2, and I have to do a CRUD of a system on series, and I need to store data in a database, I currently know how to use MySQL using Xampp. I need to make the request using Ajax. Here is the function you want to cal...
asked by 03.07.2018 / 02:47
1
answer

Doubt in unescape encryption

I have this script on the site, but this short excerpt is encrypted and I wanted to change it because it is an email to contact. When I change this part that is encrypted, the text gets scrambled and meaningless; how would I have to proceed to m...
asked by 15.07.2017 / 23:18
1
answer

Passing an array with ajax to php

I'm trying to do a delete of multiple records, where I try to get the input with Ajax and go to PHP . In the console I can see that I'm getting the values, but when it comes to passing php, I can not seem to get it. I've printed in...
asked by 23.07.2017 / 07:43
2
answers

Requests Ajax with the Fetch API keeps repeating

I make an Ajax request with the Fetch API: function PostData() { var A1_CGC; A1_CGC = sessionStorage.getItem('cpf'); console.log(A1_CGC) var inicio, fim, A1_CGC; inicio = document.getElementById('...
asked by 10.04.2018 / 15:22
1
answer

Return a table between an initial and final date range, php + json

I'm trying to return a table from a report dashboard between a specified date in, but when I click on search it just returns me Error:SyntaxError:JSON.parse:unexpectedcharacteratline1column1oftheJSONdata.Herearemycodes:  selectdata.js$(docum...
asked by 04.04.2018 / 02:11