Questions tagged as 'ajax'

1
answer

Problems refreshing a page using Ajax + PHP

I have a table with a series of records, I frame with several checkboxes of them. I click on a button that updates the records, what it does is call a php script through Ajax as many times as I have selected records. Well once finished, the p...
asked by 29.06.2017 / 17:46
3
answers

Error 401 when sending email with JavaScript and AJAX

I was looking for methods to send emails without PHP or as little as possible by AJAX, and I found a method on the Formspree page. It's very simple, but browsing I found this on GitHub that works perfectly to a certain extent. At the time...
asked by 14.06.2017 / 12:59
1
answer

how to create select dependents pdo

hello friends I am currently trying to make a select dependent, but I can not get it to show me the other select, if I inspect the item it shows me the selected value. My tables are the following: table: employees    id_employees, names,...
asked by 14.06.2017 / 05:15
1
answer

Help to send AJAX with NippleJS

I'm using nippleJS: link I'm not 100% sure if it's possible to send the joystick information but I'd say yes. I want to send an AJAX form with the position of the joystick and I want it to be in real time to control some engines. I can not...
asked by 06.10.2017 / 22:43
2
answers

I have problems recovering an array in jQuery from Ajax

I have the following code in jQuery: $("#Eng").click(function(evento){ alert ("Entro en cambio idioma."); //elimino el comportamiento por defecto del enlace evento.preventDefault(); $.ajax({ type: 'GET', url: 'FAjax.php',...
asked by 09.03.2017 / 21:15
1
answer

Show an image for an order GET Ajax (axios) of vue js 2 and show it by html 5

This is my code I want to make a call get of axios by vue and that after having the image that shows it in html getImage(param) { axios.get(param) .then((resp) => { return this.image = resp.d...
asked by 23.06.2017 / 02:23
1
answer

Uncaught TypeError: Can not read property 'length' of undefined [json, ajax and DataTables]

I can not show the data in my table. With the following index I send the data of my table by json: public function index(Request $request) { if ($request->ajax()) { $modelos = Modelos::all(); return response()->...
asked by 27.04.2017 / 23:22
2
answers

Help with this error SQLSTATE [23000]: Integrity constraint violation: 1452 Can not add or update to child row: a foreign key constraint fails

Good I am trying to fill two tables of related data bases in Laravel using ajax one of books use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateLibrosTable extends Migration { /** * Run th...
asked by 06.01.2017 / 00:44
2
answers

Share ID but it only works in the first

Only recognizes the attributes and values of the first ID, does not respect the following. I show my code below: index.php <button type="button" id="boton_uno" class="boton-estado">Boton 1</button>&nbsp;&nbsp;&nbsp...
asked by 23.11.2016 / 15:14
2
answers

Ajax jquery success: funtion execute a function

success:function(data) { $('#login').val("Login"); if (data=="1") { $(location).attr('href','index.php'); } else { swal("Error", "Datos Icorrectos)", "error"); } } I want to show the fo...
asked by 03.08.2016 / 00:31