Questions tagged as 'ajax'

2
answers

Onsubmit with JavaScript and PHP

I'm learning a bit with JavaScript and PHP. The case is that I have a form ( form ). Once filled in you have two processes. One is PHP, which collects the $POST of the html with if(isset($_POST['submit'])) and processes...
asked by 13.07.2018 / 08:00
1
answer

Does not recognize when changing javascript variable to php using ajax

I am here in this opportunity to pose a small problem that I have been turning a long time ago. It turns out that I'm developing a small, private chat, 1 to 1. The interface is simple and has a select and option to change user. Use websock...
asked by 21.06.2018 / 01:33
1
answer

move_uploaded_file does not upload the selected files [closed]

Good morning classmates, I have problems when uploading files, I'm doing tests in local, the data is sent to the bbdd, I generate the destination path, but at the time of executing the function move_uploaded_file does not upload them, and does n...
asked by 06.07.2018 / 15:47
1
answer

How to perform a Method Post Ajax in Laravel?

At Laravel, while I try to send a request via POST using ajax , it returns the following error:    405 (Method Not Allowed). $("#Enviar").click(function (e) { e.preventDefault(); var nombre = $('#name').val(); var nombr...
asked by 27.05.2018 / 12:13
4
answers

Error sending variable from ajax to php via post, help please

Well here is the code: $("#ajax_formulario").submit(function () { $.post("ajax.php", {nombre:$(".ajax_nombre").val(), apellido:$(".apellido_ajax").val(), edad:$(".edad_ajax").val() }, function () { alert("Exitos...
asked by 26.05.2018 / 23:07
1
answer

Error: Argument 1 passed to Illuminate \ Database \ Eloquent \ Model :: fill () must be of the type array

I want to update the record in a single field of the table using ajax in the following way: $('#cerrar').click(function(){ var registro=$('#cerrar').val(); var route="http://127.0.0.1:8000/almacen/compras/"+registro; var token=$("input[na...
asked by 10.05.2018 / 21:44
1
answer

Receive and display an array of C # in JavaScript

I have an array of C # that I need to show when I enter a certain page. I am making a request with AJAX to receive this data. $.post({ url: '/Home/MostrarArray', success: function (datas) { console.log(datas);...
asked by 09.05.2018 / 09:12
1
answer

How to send the result of two queries by AJAX in laravel

Good evening I'm using laravel 5.6 and I want to make a data request by ajax using an id and with this I get the result of two queries. My questions is how I can respond to the ajax request with the result of the consultations. These are my q...
asked by 09.05.2018 / 22:56
2
answers

Help! Problems filling a table dynamically with AJAX

I have tried to fill a table with data that is in a database, all through ajax. The query with the database is fine, like the sending of that data from a php file to a js file through ajax, the problem is filling the table with that data, only o...
asked by 30.04.2018 / 22:09
2
answers

Return two data with AJAX and JSON

I have a form that was valid through AJAX. I need ajax (from the file va_registro.php) to return me two data at the same time, so I'm using JSON. I can not get back my data. registro.php - > This is the Form <!--Formulario de regis...
asked by 05.05.2018 / 16:59