Questions tagged as 'ajax'

4
answers

Display data from my JSON

I can not display the data I get in JSON format, this is the code I use. This is my jquery function, I take the data of a field, I send them by post and I receive the answer which I send by the function cargar_productos that I want to...
asked by 15.05.2018 / 22:18
2
answers

Using jquery in an element inserted from php with ajax

I have inserted a select of a php with ajax in another php that is the index. This is the index of where I take the data. <?php include 'conexion.php'; $msg =""; $tipo= $_POST['tipo']??""; $sql = "SELECT marca.idmarca as id,marca.marca as...
asked by 13.03.2017 / 16:53
2
answers

Login with Ajax, PHP and MySQL [closed]

I have a question, I am starting to work with Ajax and PHP and I want to know how I can login with Ajax to validate the user if it is registered or not, my users have them in a MySQL database but I do not know how to do that validation.     
asked by 03.02.2018 / 07:28
1
answer

Sql - How to prevent the empty fields of my form from appearing as undefined when doing the query?

Hi, I have the following problem with a query, I have a form that I upload to my bd but the user has the option not to fill in all the fields, the problem is that in my table the fields that are varchar are uploaded as undefined when the user up...
asked by 21.08.2017 / 15:41
3
answers

Show result of Ajax in the modal itself with Bootstrap

I would like to know how I do it so that when the user submits the form he notifies it in the same modal, without reloading the page. Content to be included in modal <div class="modal-body"> <div class="">...
asked by 24.02.2017 / 18:24
4
answers

Datatables jquery ajax error canceled

I'm doing a catalog of kardex of the employee where I have 2 instances of the datatables plugin jquery : The first request is done correctly but the second one sends an error ajax canceled . I am not very clear why this error is...
asked by 06.01.2016 / 17:57
2
answers

copy table record to another ajax and php

I have the following function which receives an id as parameter: function terminar_tramite(ids) { var ID = ids; console.log(ID); $.ajax({ url: "lib/controladores/tramite_terminado.php", type: 'POST', data:...
asked by 10.04.2018 / 20:44
2
answers

Php - Ajax Success does not take into account true

I am trying to send my form and according to the response of my php file. Do something in my ajax. (Use the function) echo json_encode ($ data); But, never enter the true. This is how I send my form. $(document).on('ready',fun...
asked by 21.09.2017 / 05:30
2
answers

how to set a maximum response time in ajax?

I have a call through ajax that returns me an answer, what I want to do is, for example there are times when the answer takes a long time and in these cases I would like to put a message that says something like that your request took longer tha...
asked by 19.09.2017 / 13:12
2
answers

AJAX: XML read error: tag without partner. Expected: / img

I am loading ajax when testing in the browser it launches the following error:    XML read error: tag without partner. Expected: </img> Ajax code hosted in script.js $(document).ready(function () { $.ajax('otrap...
asked by 02.08.2017 / 19:53