Questions tagged as 'ajax'

1
answer

Dynamic Update with ajax

I researched and still could not solve this problem. is an onclick event that sends a request to the update.php file, which makes an update to the notifications table. Here is the code below: Triggers the onclick event: <input type="hidd...
asked by 17.11.2016 / 21:50
0
answers

How to load value from a variable through Ajax

I've done the following in an html file: <script> //transmite as informações var xmlHttp = GetXmlHttpObject(); function show() { if (xmlHttp == null) { alert ("Seu browser não suporta AJAX!");...
asked by 17.11.2016 / 18:15
1
answer

Problems with ajax form

Well, I'm having a hard time validating this page in ajax, I believe that the problem is in the php connection file, I searched in many forms but did not want something so complex or with so many validations, just something simple, I'll post the...
asked by 08.10.2016 / 02:28
2
answers

How to call an ajax inside another?

I need to call another ajax request within a condition. But the outside ajax does not wait for the inside to finish. Example: I use this $.ajax({ type: "GET", url: "MINHA_URL",...
asked by 05.10.2016 / 14:00
2
answers

Stop an ajax request and create a new one

In a search input, an ajax request is made to each letter pressed through a KeyPress in the field, however with each key pressed a new request is made, that is, if the user types fast, and he type a value of 10 letters, 10 different requests wil...
asked by 24.11.2016 / 14:28
1
answer

Force error return in ajax

For example when inserting the client (in PHP) validate if age is above 18, before inserting, validate with a condition, and if entering return an error, that in ajax, could do type: success: function (data) { alert('Sucesso'); }, err...
asked by 01.10.2016 / 23:28
2
answers

Return boolean function via ajax

I have the following ajax call on my page: $.ajax({ url: 'EquipamentoTemControleFuncionamento', data: { contratocod: contratocod, numeroserie: numerodeserie }, type: 'POST', dataType: 'JSON', success: function(retorno) {...
asked by 09.09.2016 / 19:57
0
answers

Display dialog with primefaces when clicking on an emptyMessage of a p: autoComplete

Well I'm using Primefaces I have a field p: autoComplete to look for Employees, I would like that when I typed a name and no results were found it would display the message "No employee found, click here to register "(display the message I alre...
asked by 10.09.2016 / 14:53
0
answers

413 (Request Entity Too Large) on php server

I'm trying to send a video file via ajax to the server but the server returns me 413 whenever the file is larger than a 20M, my apache settings are: upload_max_filesize 5000M memory_limit 1024M max_input_time 6000 max_execution_time 3000 post_...
asked by 06.10.2016 / 18:58
1
answer

Ajax requests in parallel

I have a system that has some things that you use long polling, this messes up everything, any button that you click (that makes an Ajax request) will take a long time because it has the long polling running. Ajax by default creates a queue o...
asked by 06.09.2016 / 03:12