Questions tagged as 'ajax'

1
answer

File Upload in JSF with ajax

I'm trying to upload a file of any kind through the jsf h: inputFile element, and I try to do this with ajax, but when I try to upload this error appears in the browser console. .. Uncaught TypeError: Cannot read property 'getAttribute' of u...
asked by 16.01.2018 / 20:30
1
answer

WebService Read Script

I'mtryingtomakethiscodework,butintheexcerpt:success:function(retorno){If(retorno[0].erro){$("h2").html(retorno[0].erro); } An error is occurring, and I can not identify what is missing. The message the debu...
asked by 16.01.2018 / 19:13
1
answer

Problem passing some Json messages to Jquery

Well, I have a form that is passed to my PHP via Ajax in Jquery and returns the result via Json to my console. Here's a snippet of code in PHP. if($tabela == 'setup') { if(isset($_POST['nome'])){ $nome = $_POST['nome']; if...
asked by 07.05.2018 / 21:58
1
answer

result of ajax in php session

I am filtering a cpf / cnpj through imput / datalist and checking the result with ajax. I want to bring the result in 2 php sessions but I can not. The page that contains the filter: <!doctype html> <html> <head> <meta...
asked by 03.05.2018 / 00:04
1
answer

How to call a zend method using Jquery?

I have this Jquery function that enables an input for the user to edit a form, when editing and clicking 'Enter' I want to save the change made in the database, without submitting the form. > - My JQuery function $(function () { $(".nr_o...
asked by 11.12.2017 / 19:31
3
answers

How to send an array variable of objects via AJAX? [closed]

I have the following object: var pessoas = []; pessoas = { nome: "julio", sobrenome: "Henrique", idade: 18, amigos : ["Pedro", "João", "Isabella"] } I send the array friends via ajax like this: $.ajax({ url:'retira_falsos_a...
asked by 04.01.2018 / 12:38
3
answers

I can not return data from an asynchronous Ajax

I have the population of 4 HTML select with Ajax, however I have a problem when returning the files, I tried to do asynchronously only that it was not good because the user can see each select being populated in order (besides the delay is u...
asked by 05.12.2018 / 18:23
1
answer

Multiple requests with $ .ajax, synchronously

I am making a system, and in it I need to send several data to the server, basically synchronize an array of objects on a server via json using javascript, until there is no problem, however the request is $ .ajax, which is asynchronous, and the...
asked by 06.07.2017 / 18:56
2
answers

How to resolve undue page redirection in form?

I am creating a land-page for capturing leads. I need to pass the files via ajax so I do not have to redirect the page, however whenever I send the data to the page that must include the database it tries to redirect the page to a course page or...
asked by 07.08.2017 / 23:46
4
answers

json_encode returning TAGS HTML [closed]

When performing echo json_encode($data); , I am receiving, via console.debug(data) , the following: <br /> <font size='1'><table class='xdebug-error xe-notice' dir='ltr' border='1' cellspacing='0' cellpadding='1'>...
asked by 09.01.2017 / 18:21