Questions tagged as 'ajax'

4
answers

Return array of objects by AJAX

I am developing a sales system, and in the ticket window I have the search button that allows me to go to another page with the list of articles. This consists of two buttons. One is adding that adds the product in question to an array of detail...
asked by 18.07.2018 / 19:38
1
answer

Make capture with html2canvas and save it on a server

I see that with this library we can print the resulting image somewhere in the DOM or even download it, but is there any way to store it on a server? Thank you very much!     
asked by 14.06.2018 / 23:03
1
answer

Help, How to manage the download of a file using $ .fileDownload from a controller?

I have a method that retrieves data from the form, and passes them as parameters to a service method to perform the query, this method returns a json response, and in the view sends me a message if there is data or not data in the query. Now...
asked by 14.06.2018 / 06:59
1
answer

how can I validate input text without using button with PHP, MySQL

Good morning I hope you can help me with the problem I have about the validation of this input text ... I have 2 database tables and I need to validate two fields in one table and one field in another table. The detail is that I scan a barcode a...
asked by 21.06.2018 / 23:23
3
answers

How to pass values through AJAX of a Select using the ONCHANGE

I have this .php that sends the chosen value of a select <!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8" /> <title>pasar valores con ajax</title> // Aquí esta la referencia a jque...
asked by 19.06.2018 / 22:48
2
answers

Problems with receiving variable get [closed]

I have this simple error, but I can not tell what I'm doing wrong Undefined index: activity_id $id = $_GET['id_actividad']; $sql = "SELECT * FROM actividad WHERE id_actividad = '$id'"; $resul1= mysqli_query($conexion,$sql);...
asked by 05.06.2018 / 07:49
1
answer

Show name according to select in other input

I have a table where I have, the id, department code and the full name of this and what I want is that when I select an option, the full name of the department appears but it is only showing me the id I have this function to do that functi...
asked by 14.07.2018 / 04:41
1
answer

Promise in a vuex action does not work when trying to handle the http request error

Hello, I am developing an application in Vue.js, Nativescript and Vuex , when making an ajax request in an action return a promise to handle asynchrony the problem is that when an error is generated this It is not captured at the moment of call...
asked by 17.09.2018 / 20:55
3
answers

Help to resolve GET 500 error (Internal Server Error)

I am trying to create a dynamic select with ajax, when selecting a role, users with the selected role should be displayed. The script that I am using is the following <script type="text/javascript"> $(document).ready(function(){...
asked by 09.05.2018 / 20:10
1
answer

Error traversing a JSON

I am trying to run a json which I previously obtained from php. But when I try to run it to show it, it sends me this error in the console.   I'm new to javascript and ajax, my goal is that json, is an array of a query made in mysql, when I...
asked by 05.05.2018 / 13:12