Questions tagged as 'ajax'

1
answer

How to get the data of a DB and put them in the input to be able to modify them with Ajax and PHP

$('tbody').on('click', '.modificarBtn', function(){ var vidToUpdate = $(this).data('idest'); $.ajax({ url: 'update.php', type: 'POST', data: {vidToUpdate: vidToUpdate}, success:function(data){ $('tbody')...
asked by 28.09.2017 / 05:25
1
answer

Browse array from ajax function

Good, I have a variable session called api where I have two words stored echo $_SESSION["api"]['0']; This would be parabra1 echo $_SESSION["api"]['0']; This would be word 2 This variable is in a php file and is returned to a...
asked by 23.09.2017 / 22:58
0
answers

Filter fullcalendar events

I need to filter the events that are shown on the screen by means of a select, that when selecting a value, in this case one of the career leaders, only shows the events belonging to that career leader, for which I am using .change of javascript...
asked by 02.10.2017 / 21:40
1
answer

Using AJAX with CRUD

Good evening, I have made a CRUD for an information request form from an academy. The idea is to use AJAX to make the CRUD much more dynamic and effective, but I'm still new to AJAX and I do not have much idea to be honest. This is the CRU...
asked by 24.09.2017 / 21:29
1
answer

Problems when reloading Datatable

Greetings to all, I have this problem with a Datatable table which in my .JS file I declare at the beginning of this way: var table; $(document).ready(function(){ table = $('#example').DataTable({ data: "", 'rowsGroup': [0...
asked by 26.09.2017 / 23:45
1
answer

How to add a button type field to an array

I have the following function: public function ajax() { $consulta['consulta']=$this->Model_Entidades->traerentidades(); echo $x=json_encode($consulta['consulta']); } which returns 4 fields and I insert them in a datatabl...
asked by 27.09.2017 / 17:55
1
answer

DOES NOT SAVE DATA IN AJAX

Hi, I wanted to know why it does not save my data when I'm using ajax I created the function and put onclick on the button <script> function saveData(){ var dni = $('#cli_dni').val(); var nombres = $('#cli_nom').val(); var...
asked by 23.09.2017 / 09:09
1
answer

how to create an HTML element in JavaScript

I have an ajax function that gets the elements of a data source in django. I can see that the function brings the elements in the inspector but I can not create the element in the div that I need. the result of the ajax function in the inspec...
asked by 20.09.2017 / 21:51
0
answers

Upload to FTP through PHP

Good morning. I am trying to upload a file through an HTML form with PHP. The connection is successful and moves successfully to the route, but at the time of making the upload fails, giving me in Filezilla Server the failure "550 Permission den...
asked by 21.09.2017 / 12:26
0
answers

Combo box dependent does not load when editing and the name of the photo is not recovered in its field

My combo box when adding new record works well its dependency but when editing it does not load the subcategory or the second combo, it remains empty and if I keep it that way it keeps me null the value, the only way to activate or to select aga...
asked by 21.09.2017 / 16:19