Questions tagged as 'ajax'

1
answer

Get the last id generated in the insert with jquery and redirect to another page

Hello, I'm having trouble getting the generated php id with jquery, so I can send this id to another page, follow the code: queryInsert.php $assunto = $_POST['assunto']; $msg = $_POST['msg']; $query = $db_con->prepare("INSERT IN...
asked by 14.02.2017 / 12:56
1
answer

Uncaught SyntaxError: Unexpected identifier

I am having this error on line 14 of my script but I can not see the error, if anyone can help, thank you !! line 14 - > error: function (data) { all code $(document).ready(function(){ function confLojas(id) { var resposta = confirm(...
asked by 11.04.2017 / 15:44
2
answers

Have PHP read the server folders [duplicate]

Colleagues. I have now taken a project here at work, where back in the beginning this project was developed. It works as follows: Some folders with jpg have been created on the page index.php, where it directs to the respective links. Bu...
asked by 17.01.2017 / 18:20
1
answer

Synchronize php and ajax

I'm doing a select in php using a variable that comes from ajax, the problem is that the php is trying to query before receiving the ajax value, this generates an error on the page and the routine is broken in the middle FOLLOW THE CONSOLE ER...
asked by 07.12.2016 / 19:05
2
answers

String comparison problem in AJAX

Good evening, I have a problem with here, I'm using an ajax code to check if a cpf is already registered without the refresh on the page to not lose the data, and returning a string with a value encrypted in sha1 for comparison and know if there...
asked by 13.09.2016 / 01:37
1
answer

Return PHP outputs on the same page

I have form which is validated via JavaScript. It's working perfectly, it validates, it sends% pro% and it gives me a .php saying that it was successful. But I wanted this echo to be given on the same page as a echo ,...
asked by 07.01.2017 / 14:47
2
answers

Ajax request in ES6 constructor

How do I make a Ajax request in my constructor and assign the values of this request to my attributes? So far it's like this and it's not working, I'm returning 2 jsons ... on console.log the attributes are empty, ie the...
asked by 01.05.2017 / 04:32
2
answers

Should I validate data in javascript and php? [duplicate]

I have a file that sends some data to another page with ajax . These data are mostly numbers, and are not stored anywhere. I just get some data in inputs and send it to the file php with ajax , and then return these calcul...
asked by 09.07.2016 / 14:15
2
answers

While Ajax JQuery

I have the following code: $.ajax({ type:"post", url:"../connect/post/infoClienteTask.php", data:'infoClienteTask='+fantasy, success:function(responseData){ console.log(responseData);...
asked by 24.11.2016 / 12:04
1
answer

Return via Ajax date in an input type date with Jquery

I have the following Ajax code: $.ajax({ type:"post", url:"../connect/post/infoTask.php", data:'info-task='+idtask, success:function(responseData){ $(".delivery-in...
asked by 29.11.2016 / 13:42