Questions tagged as 'ajax'

3
answers

function $ .Ajax () return value?

this is the code: var res = VerFileRepetidoBancoAjax( "teste" ); console.log("res="+res); function VerFileRepetidoBancoAjax( str ){ $.ajax({ url: "caminho.", type: "get", dataType:"json", data: "dado="+ str, async:...
asked by 18.08.2014 / 17:05
2
answers

What major precautions should I keep in mind for my application to work correctly on different browsers?

I run small systems using xhtml, ajax, and php. When I code I'm testing the parts in the Chrome developer tool (Ctr + I) and phptester.net. When I finish my application, I have to debug everything again so that I can properly run Firefox and...
asked by 09.09.2014 / 23:37
0
answers

How to make ajax calls through the reverse proxy in an elegant way?

I have a project that validates, in JavaScript, the structure of a JSON. Here is more or less the structure I had used to do the asynchronous redemption of the structure, as well as what would be the static redemption for a default structure of...
asked by 07.08.2018 / 22:35
4
answers

Subsequent Calls in Ajax

I wrote a system on Web2py to a client, and he wanted me to automate a procedure. I thought about using Ajax. The idea is as follows: I have a list of companies. Let's say, 50. I want the screen to open with the list of companies and, on top...
asked by 16.12.2014 / 21:15
5
answers

How to use ajax and php to call a function in php?

I'm having trouble requesting a PHP function via Ajax AJAX Code: $.ajax({ url: 'geraSenhaProvisoria.php', type: 'POST', cache: false, data: {geraSenha(6, true, true, true)}, error: function() { alert('Erro ao t...
asked by 04.02.2015 / 12:24
1
answer

What is long polling?

Always when I search for "periodic updates" and "real-time notifications" for web applications, I come across the term long polling . For the little that I understand, it seems to refer to periodic updates made with AJAX, for example with a%...
asked by 11.11.2017 / 04:27
1
answer

How to get the current percentage of a download?

I want to get the percentage value of an ajax request from an external server. How to do? $("#uptade_space_disk").click(function(){ var url = "/calcular-espaco-em-disco" jQuery.ajax({ url: url, dataType: 'script',...
asked by 18.02.2014 / 16:15
1
answer

How to implement editable table, updating the fields in the database automatically

I have the following table that lets you edit cells directly: The codes are in 4 parts:    MySQL table CREATE TABLE IF NOT EXISTS 'php_interview_questions' ( 'id' int(8) NOT NULL, 'question' text NOT NULL, 'answer' text NOT NULL,...
asked by 20.01.2017 / 19:20
4
answers

Problem assigning HTML with .text () and .html ()

I need to insert the HTML that refers to a hyperlinked image received through an ajax function on the page, however for security reasons I can not simply insert directly, so I'm passing this HTML code through .text () for a created div, and only...
asked by 31.05.2014 / 16:50
3
answers

jQuery - Typical duplicate use situation of the same code. How to proceed?

Being here doing my sites in php/mysql/html/css and learning more and more about jQuery I got into the situation where I should use the same code for two ids distinct. How do I need to use the same code in two different p...
asked by 09.08.2014 / 20:05