Questions tagged as 'ajax'

1
answer

AJAX / PHP pass $ _GET and $ _POST?

Good night everyone, I have a PHP script that creates a table in which, on this page is run an ajax script and gives real time to see who is in the database ... in this table I have a delete button for each person and when clicking a variable is...
asked by 26.02.2018 / 22:21
1
answer

Ajax request does not work

I have 3 files: newDose.php: <label for="busca">Buscar cidadão:</label> <input type="text" class="form-control" id="busca" placeholder="Digite parte do nome ou o CNS" onkeypress="busca(this.value);"> <br/>...
asked by 22.02.2018 / 13:19
1
answer

Return multiple elements through ajax

My question is as follows, I have a table in MySQL with id , pesquisa and data . I want to give select to this table in php and return ajax so that I can insert each element into a specific td...
asked by 20.04.2018 / 16:48
1
answer

How to receive ajax data in a vector?

Hello everyone, I'm trying to do this, but without success: HTML: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <section...
asked by 22.04.2018 / 04:25
2
answers

How to stream a file from my server?

People would like to know how I can make a shareable file type, for example: I have a file called bots.txt on my server, I would like my clients to edit it via the web getting saved on my server. The following is an example of Onedrive: File ....
asked by 16.04.2018 / 20:05
1
answer

Retrieve input file to pass as date in AJAX

I'm developing an application in which, for reasons of aesthetics, I needed to recreate some elements in order to be able to customize each one, especially <select> and <option> correctly. So I need to pass the form...
asked by 17.01.2018 / 16:58
1
answer

Servlet is responding but ajax does not reflect response

Good morning, I have a simple form in which I submit via ajax, so my servlet takes that result and gives an answer, from the answer, the ajax will do something. I can see the response in the browser, but I do not get the result in ajax. J...
asked by 17.01.2018 / 13:11
2
answers

Update PHP function every second

I'm using a function to get the server load: function get_server_cpu_usage(){ $load = sys_getloadavg(); return $load[1]; } I call it with: <div id="load"><?= get_server_cpu_usage(); ?></div> I need to implemen...
asked by 05.03.2018 / 21:28
1
answer

Returning Ajax request undefined

I'm studying a bit of Ajax and testing your requests. My question is because of the return, it is coming back undefined. This is the function: function recarregar() { var jsonData = $.ajax({ url: "http://xxxxxxx/o/Ano/1235",...
asked by 21.02.2018 / 15:25
2
answers

AJAX Axios loading JavaScript

I am doing an AJAX request using the Github API by the axios and wanted to know how I do for while loading the information, it gives a console.log('carregando'); and create a component written "loading", and after that it deletes the load...
asked by 05.09.2018 / 22:07