Questions tagged as 'ajax'

0
answers

Adding DataTable rows

I have a table, which I need to populate it dynamically as the user adds the information. How can I get this information, do I already have the function that picks up, and add in the DataTable? Here is the function I get the filled fields: fu...
asked by 21.08.2018 / 21:50
0
answers

Refresh a div from a dashboard without reloading the entire html page [duplicate]

I'm finishing my CBT and I came across a problem. I am creating an administrative control panel and would like it to display in real time a count of a table in my database. I was told that the ideal for this situation would be jQuery + Ajax .....
asked by 19.08.2018 / 18:46
1
answer

Execute function for various items in JS

I have a function that is responsible for updating the values in some <div> , script follows: file.js window.onload = function makeRequest() { var xmlHttp = new XMLHttpRequest(); xmlHttp.onreadystatechange = function()...
asked by 28.08.2018 / 15:36
3
answers

Success: function (data) in Ajax not working

Everything within the success does not execute, but the request is sent successfully yes I saw it inside the chrome network and the login is normally done, it just does not trigger the success of ajax. function sendForm(token){ var...
asked by 28.08.2018 / 12:31
0
answers

Download service file Rest with Ajax

I need to download an Excel (.xlsx) file that is generated by a rest Spring service. Does anyone have an example of how to do this? The controller rest looks something like this: private static final String PATH_FILE = "/home/testes/Arq...
asked by 15.08.2018 / 19:09
0
answers

Set user status to "Away" in Wordpress

Recently I asked a question here on Stack: #, with the help of the user # But another question arose as to how to add the status of "Away"? The function (functions.php) below was the solution that Heathcliff suggested and worked:...
asked by 17.08.2018 / 23:47
0
answers

Uploading files with AJAX before writing to the database

I have a product registration form where you can select multiple photos. So far so good, but I need to perform some validations on the photos selected. And from what I've seen it's only possible to upload those files via AJAX the moment they are...
asked by 09.08.2018 / 02:55
1
answer

Get external json data, list, and save in webstorage

I'm trying to get the data via json, but I want to save it in the browser, but I can not if someone can help me follow the code <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> <met...
asked by 09.08.2018 / 01:05
0
answers

Error in comparison with response

I have this JS below, which I include at the end of my document. It sends the data via ajax to a PHP file that answers a text, in the example below -666 and logar . It happens that it does not fall into the right condition. I see through...
asked by 15.08.2018 / 00:27
0
answers

Save to Database with filters

I'm working on a project, which I have to save a photo in the database with the filters applied, but it only saves the original and with the filters it gives "error". I have already created a column in the table of images with the name of "filte...
asked by 07.08.2018 / 15:49