Questions tagged as 'ajax'

1
answer

Load table body with JSON. ASPX

I have the following table: <body> <table id="datas" align="center"> <thead> <tr> <th>Id</th> <th>Nombre</th> <th>Eda...
asked by 22.11.2018 / 01:18
2
answers

Error passing data from ajax to php (Notice: Undefined index: id)

This is the ajax code: clicking on a button opens that function and saves the id of that button in a variable called id. Then it is assumed that with ajax that id is sent to form.php but I get the following error:    Notice: Undefined index:...
asked by 07.11.2018 / 23:10
1
answer

AJAX with PHP Finder that consults BBDD

I'm doing a kind of search engine, in which while you press a key, an AJAX request is made to consult it in the DB. The point is that I still do not know much about AJAX and it does not work for me. At the moment I am testing with any text inste...
asked by 28.09.2018 / 19:32
1
answer

I do not receive the data sent from javascript (fetch) to php

I try to do a mini project to practice the use of the fetch (), the idea is to make a search engine which consists of typing a data in an input, when typing it will show information that contains part of that data entered. The thing is that I ha...
asked by 29.09.2018 / 04:44
1
answer

Better practice to make several ajax requests?

I need to clear the following doubt. I want to make 2 ajax requests, the problem is that I make the request 1 (I get a data) and I need to pass that data to the request 2. I have done the following: I create an ajax (jquery) and I get the da...
asked by 24.09.2018 / 20:48
1
answer

soCapture data from a row with JQuery - Ajax - Laravel

I have the following code that shows without any problem a table of records generated from a json array. $.each(query, function (name, value) { fileTable +="<tr><td width='10%'><input type='text' name='fechaAsignacion' id='f...
asked by 19.09.2018 / 16:50
1
answer

AJAX Update live data

I am writing a system that should update two divs, as much as possible, in real time. The way I found it is as follows, using AJAX: function actualizarDatos(){ $.ajax({ type: 'POST', cache: false, async:true, url: 'l...
asked by 25.09.2018 / 15:05
1
answer

How can I reload a table with javascript or jQuery in ajax?

I would like to reload a DataTable after the confirmation of a modal and thus add or remove some checkboxes, but every time I do it, another table is generated on top of the other, and the Datatable is unconfigured. (I am using this after the c...
asked by 12.09.2018 / 17:46
1
answer

Show only the current user profile image with PHP

Good morning. Someone will know by chance how I can show only the current profile image with PHP Currently I have this like this: $path = "files/".$id; if(file_exists($path)){ $directorio = opendir($path); while ($archivo = readd...
asked by 04.09.2018 / 23:12
1
answer

AJAX sends me empty data to PHP

It happens that I am creating a temporary table, the data that I am registering in the same I will pass them to an array (miArray) in js to be able to send them through AJAX to a PHP and then save them to a database. Function of Javascript...
asked by 30.08.2018 / 02:05