Questions tagged as 'ajax'

0
answers

YII2 Modal Ajax

Good morning! I'm a bit new in terms of programming, even more so in Yii2, and I know there are some guides on how to use Ajax in Yii2, but they are few and I still can not understand it easily, even without Yii2 I do not understand ajax very mu...
asked by 22.11.2017 / 11:59
1
answer

Problems with using Ajax request

When I try to make a request to return an sql query to the form fields it returns only the first row of the table, how can I change my code to search for all rows: code that makes select: <?php class Medico { public $nome; } try { req...
asked by 10.11.2017 / 21:59
1
answer

How to capture data to only feed a list with VTEX

I made this js code to get the data of the inputs (THIS PLEASURE OK THAT PART) from the page and send it to VTEX (NOT SENDING). It must be some detail that I've forgotten. I've done several js to capture the data, register in VTEX and then trigg...
asked by 11.11.2017 / 15:44
1
answer

Accessing the PHP class with AJAX

I have the file.js file in the folder: folder1\folder-xpto\js\c3-0.4.11\file.js This file has the following script AJAX : $.ajax({ type : 'post', url : 'controller/classX.php', dataType : 'html', data : { var...
asked by 31.10.2017 / 15:43
0
answers

API with JavaScript (like showing the api data without having to click the link)

I made an image with a link, then when I click on this image the api data goes to the table I created, but it only goes when I click on the image, how can I change it to show as soon as I load the page? p>     
asked by 30.10.2017 / 15:23
0
answers

Ajax load only one page div per Class

With ID I can guess, doing so: $.ajax({ url: "www.teste.com/recuperar-senha #senha", beforeSend: function(){ $('.main').html("<p>Carregando...</p>"); }, success: function(r){ $('.main').html(r);...
asked by 27.10.2017 / 18:56
1
answer

Forms problems

I'm trying to make a form using js and php, but when I click the submit button, it always stays with "Sending Email ..." and never sends, I checked the console and says the error is in the email.php (404 error not found) ... If someone can help...
asked by 29.10.2017 / 04:31
0
answers

how to recover json php data with ajax

How can I retrieve data coming from a page in php with ajax . because I am getting the result but it is not coming to jquery it does not bring me the values Query code if(isset($_POST['cep'])){ $cep = $_POST['cep'];...
asked by 13.11.2017 / 01:47
1
answer

Crud Ajax Laravel 5. *

I have a problem. I'm doing a crud with Ajax + Laravel. "Everything" is working, except that when I update a data, it also registers. Well, look what I'm doing. I have a Bhutan that I have an id called dashboard_character_category. This id is fo...
asked by 03.11.2017 / 00:18
1
answer

Send more serialized form via AJAX?

I want to serialize my form, and send other variables. Is it possible? Example: var id = "1"; function register(){ $.ajax({ method: "post", url: "meu_script.php", data: $("#form").serialize(), //Aqui eu queria passar a variáv...
asked by 10.11.2017 / 01:33