Questions tagged as 'ajax'

1
answer

How can I get the Input file path?

I need to send multiple attachments via PHPmailer and I'm using jQuery to get the value of input file , now I need to get the file path to be able to send it by email, however when I get the path it comes with C:\fakepath\image.jpg...
asked by 04.12.2014 / 18:04
1
answer

Data returned in request Ajax + PHP

I have this Ajax that takes the return of a PHP script. For this, I gave an "echo" in php and it returned the data. If I want to work with more than one data, will I have to create an ajax for each field? For example: I put the badge in a field...
asked by 19.06.2015 / 21:25
1
answer

Field disabled does not pass to $ _POST

I have problems with the field that I disable if one of the options is checked, but when the field is as desabled it does not pass values to PHP. I would like to know how to check whether the value exists or not, and if it does not exi...
asked by 22.01.2016 / 16:16
2
answers

Selecting and displaying data with Ajax

I have the following ajax : var id = $('#idCliente').val(); $.ajax( { url:"/Administrar/chamadas/ajax/endereco/" + id, dataType : 'json', success:function(result) { $('[name^="cham_endereco[]"]').val(result.ender...
asked by 22.01.2016 / 13:22
2
answers

Receive responses from the jQuery Ajax request

When I send an Ajax to run the script from my PHP the only thing it returns is success if the script was executed successfully or error if the script did not run successfully. Question: How to capture response from PHP and return this response t...
asked by 02.08.2014 / 14:27
1
answer

Dynamic fields with jsf and ajax not rendering mascara

I have a JSF form in which I add <input> fields dynamically with AJAX. When I click on <h:commandButton> it triggers the routine to add <input> the field is added however the mask that I set for it is no...
asked by 06.08.2014 / 15:11
2
answers

How to make jQuery .load only load content inside the main?

How could I do to make the .load function instead of loading the content of <body> just load the contents within <main> ? My jQuery: // Checa se a página foi carregada para evitar aplicar os códigos antes de...
asked by 15.08.2014 / 04:47
1
answer

Running background processes - Accessing same script twice

I have a PHP script that aims to integrate with a third-party system. Basically, my script sends image and text files to the client ftp. To ensure processing for a long time, I use the following statement: ignore_user_abort( true ); // N...
asked by 15.08.2014 / 22:26
2
answers

Showing the result according to the load and not waiting for the script to finish displaying the results on the screen

My question is as follows: the code is working as expected the problem when I put a large email list (100) the page gets all in white "loading" and only returns me the result after the script ends to be executed, I need a solution that allows me...
asked by 12.01.2015 / 02:40
1
answer

Send multiple values in an input to PHP using jQuery AJAX

I have a script that aims to insert multiple items into a list of a form using Ajax. For each element inserted in this list, a next one should be added. After inserting X elements, it should take all values and play in just one input, addi...
asked by 31.10.2014 / 19:57