Questions tagged as 'ajax'

2
answers

Update a div with ajax when there is a change

I want to make a div recharge only when it finds a modification in the database I currently have this so, if you can help me I would appreciate it is for a shift system that I am doing <?php $result = $mysqli->query("SELECT * FRO...
asked by 27.07.2018 / 17:58
2
answers

How to pass 2 variables through AJAX to another PHP

Well what I want to do is send 2 variables js with value of an input by AJAX to a file that receives them, for example: $ _POST ['idReceptor']. If you sent a single variable it is sent well but I can not send 2. var idEmisor = $("#idEmisor").v...
asked by 05.11.2018 / 21:27
2
answers

Ajax always within .html in the script tag?

I have been studying ajax, in different videos from youtube and in different pages, now my question is always the script in which ajax is going to be in the .html I always see it there, and for example I tried to pass it to another side like a ....
asked by 28.02.2018 / 17:50
2
answers

Send local variables to Ajax

I have a cycle for and inside a call ajax . In success I use a variable that is "processed" with the cycle and is different for each call in the ajax. The problem is that the success does not seem to be taking the corr...
asked by 22.12.2017 / 00:27
2
answers

How to load content inside a DIV with Ajax and php?

Hello Good Nights or Days have good today the problem I have with this  code is to load content when you move the browser bar to the bottom and what I want to do and I can not work within a div using the scroll as well as Facebook chat I hope yo...
asked by 30.11.2017 / 03:12
2
answers

How to order the id's of the elements of a table - JS

in my code I add elements to a table using javascript. function agregarAlumno(){ var rut_alumno = $('#rut_alumno').val(); var nombre_alumno = $('#nombre_alumno').val(); $('#example1 tbody').append('<tr id='+rut_alum...
asked by 28.08.2017 / 15:46
2
answers

Get properties of an ASP.NET file Razor C #

Hello, I'm doing a module in ASP.NET with Razor and C # where I upload a file of any type to a database , along with other data. I need to get the properties of the file on the server side ("with C # "), in order to be able to append thes...
asked by 27.10.2017 / 19:16
1
answer

Problems with running phpmailer from ajax

I would like to tell you that I want to send a form by ajax and that this data is obtained to execute the PHPMailer function. The problem is that from the file send _mensaje.php I get the following errors:    Undefined in...
asked by 25.07.2017 / 16:04
2
answers

ajax problem sending data with formdata

I can not get the form to print the data in the "resp" div that I group in the variable "form_data", this is a test code I am doing to learn how to use formData better. <?php $mes = "marzo"; ?> <script> var tiempo = "llueve"; $(...
asked by 18.07.2017 / 17:59
2
answers

Ajax POST internal error 500

Running the ajax throws the POST 500 error. The php throws the problem if I define $columna= $_POST['columna']; but if I define by test $columna='marca'; the PHP works correctly and sends the information to ajax correctly. So I gue...
asked by 26.07.2017 / 00:50