Questions tagged as 'ajax'

1
answer

How to capture the value of a select or input text to send it by ajax

Good morning I am trying to capture the value of a select that is outside of a form to send it to a BD, with an example that I was given on this site I managed to send 3 parameters but the select always sends the first item and not...
asked by 17.12.2017 / 16:26
0
answers

select nested in c # ajax mvc and bootstrap-select

It turns out that I'm loading a select with the data obtained from a database with ajax, this is the code c # for this I use bootstrap-select link vision code <div id="buttonGrp" class="form-group"> <div class=...
asked by 03.12.2017 / 03:53
2
answers

Open in a new window with Ajax

I have a code in ajax that I did not create, and I do not know how to modify it so that the link opens in a new tab. Note: It is a button, which is activated after 5 seconds of waiting, and this is only part of the code that makes up its prog...
asked by 01.12.2017 / 22:04
1
answer

Conflicts between Ajax and angular 2

I am sending a form with AJAX and everything works fine, the problem is that I need to store the AJAX response in an Angular2 variable. My code: xhr.onreadystatechange = function(e) { this.miVariableAngular = this.responseText; };...
asked by 01.12.2017 / 22:43
0
answers

How to use ajax to update in real time a crud in php?

Hello everyone I have this question, I finished a crud that shows orders but at this moment I do not know how I can do that as a new order is added to the database, my php file is updated to show the last order in the top This is my index:...
asked by 28.11.2017 / 22:49
3
answers

How to hide a column of a datatable if it is a specific user?

I have a datatable with a column defaultContent , where I have buttons to edit, delete and give privileges but I want to hide it if the profile type is user, that is, only the administrator can see that column usser.js ... $(do...
asked by 28.12.2017 / 18:40
1
answer

Ajax show information depending on an option select

   teacher.php <?php include('php/conexion.php'); if ($_SERVER['REQUEST_METHOD'] === 'POST') { $grupo = $_POST['grupo']; $getNotas = mysqli_query($con,"SELECT * FROM notas WHERE grupo='$grupo'") or die ('error al obtener datos...
asked by 26.11.2017 / 11:57
2
answers

MySQL query with Ajax PHP

I need to query my database from a button, and I've had problems with that. I have a "button" or an "a" or an "input type" and I want to change a record with the "onclick", that is, if I press the button, the "state" field of my table will ch...
asked by 10.12.2017 / 08:20
0
answers

Continue with ajax request, after validations in php

How could I build a form that after collecting the form data, send them by means of an AJAX request to a PHP file and this in turn validates them in the BD, return a response and this response is sent to an HTML message with validation buttons a...
asked by 25.11.2017 / 17:45
1
answer

Change status of any checkbox in a table

Hello good afternoon this time I come across a detail that I can not solve. When you click on a checkbox you should trigger a function that verifies if a candidate is already associated with a vacancy but what does not go well is that when you d...
asked by 25.11.2017 / 00:05