Questions tagged as 'ajax'

1
answer

Long Polling performance with PHP, Mysql and Ajax

I'm developing a PHP site, and using Long Polling techniques for real-time notifications. I'm getting the script to wait 50 seconds for a response, and not getting one, in 2 seconds it asks again, to give greater turnover of connections, as t...
asked by 29.04.2015 / 21:36
2
answers

jQuery validate submitHandler does not work in firefox

With the following function below, I can send the data via ajax quietly in Chrome, but when testing in Firefox, no error occurs and data is not sent. $('#form_lista_amiga').validate({ rules : { cpf: { required: true, cpf: true }...
asked by 26.02.2015 / 18:36
4
answers

How to disable JavaScript field?

I have these HTML fields: <div class="col-sm-6"> <input asp-for="ConfiguracaoTecnibra.HabilitaTeclado" type="checkbox" id="cbHabilitarTeclado" onclick="HTeclado();" /> <label class="control-label">Biometria</label&...
asked by 09.07.2018 / 22:18
1
answer

How to retrieve via Ajax query result variables in PHP?

I made a query via Ajax which returned the variables within PHP : // Variaveis $nome = $Fetchi['nome']; $email = $Fetchi['email']; $tipo = $Fetchi['tipo']; $senha = "Digite uma nova senha..."; $ativado = $Fetch...
asked by 03.08.2014 / 14:52
3
answers

Ajax cross domain

Hello some time ago I asked this question: Paste content of another page by javascript or jquery The colleague @SneepSNinjA made the following algorithm that worked. $(document).ready(function(){ $("button").click(function(){...
asked by 17.07.2015 / 19:21
1
answer

How to prevent caching in Ajax requests in IE 6?

I have the following code to update a DIV on a page: var req; // FUNÇÃO BUSCA ROMANEIOS PARA EXIBIR NA TELA DE MENU. function buscarRomaneio() { // Verificando Browser if(window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if(wind...
asked by 23.08.2016 / 21:43
1
answer

How do you create those preview videos on some tube sites?

Currently sites such as YouTube and some other adult content, play a preview video when we place the computer mouse over some thumb of a list of videos that is shown to us users. So how curious is this implemented?     
asked by 04.10.2018 / 21:08
1
answer

Intercept AJAX requests

I have the following question, how can I do to "intercept" AJAX requests before they are done? For example, in some forums while constantly browsing requests are being made without our knowledge, another day I was in a forum and I decided to...
asked by 06.06.2014 / 23:12
2
answers

What is the difference between Ajax's dataTypes in jQuery?

I'm learning jQuery and need to know the difference between Ajax's dateTypes. dataType: "xml" dataType: "json" dataType: "script" dataType: "html" How does this influence script execution and result r...
asked by 29.07.2015 / 20:01
1
answer

Why does the enhancer "lose" the loop? [duplicate]

Making a simple loop FOR , I encountered a strange behavior that I could not understand. The count is "lost" in the AJAX request, keeping the incrementer value with the last one. The URL request always returns 200 and still doe...
asked by 27.05.2016 / 00:01