Questions tagged as 'ajax'

1
answer

Help with email validation Ajax + php

I have the following code; function checkemail() { var email=document.getElementById( "emailReg" ).value; if(email) { $.ajax({ type: 'post', url: 'check_email.php', data: { user_email:email, }, success: function (response) {...
asked by 04.02.2018 / 02:13
1
answer

Work with JSON data in PHP

I have a variable JavaScript in the following way: var datos ={Tabla: 'Principal' , CampoConsulta:['Nombre','Apellido_Pa','Apellido_Ma'], DatosConsulta:['Juan Luis','Perez','Martinez'], TipoDato:['s','s','s'], Val:[1,2,3] }; This dat...
asked by 04.02.2018 / 02:44
1
answer

Why does it flag error "500 internal server error", in an Ajax call?

I am trying to make a call Ajax, but it marks me 500 internal server error, I could not find where the error is, here I leave my code: debugger $("#NotificaSolo").click(function () { debugger var ta...
asked by 10.01.2018 / 20:00
1
answer

Convert date to Javascript

As I can show the date in a DataTable in asp.net, this is my result but I want to show the date this is my controller public ActionResult loadData() { using (SISTEMAUSGEntities dc = new SISTEMAUSGEntities()) {...
asked by 18.12.2017 / 23:08
4
answers

Send 2 more variable arrays using ajax

Good, it happens that I have 2 arrays and 2 variables, which I need to send via POST, so far I have this: $.ajax({ type: "POST", url: "saveAsistencia.php", data: {'array':JSON.stringify(asistencia)},...
asked by 19.12.2017 / 22:43
1
answer

Select dependent PHP AJAX MYSQL

I'm working with 2 select, the second depends on the data that is selected in the first one. I have not managed to make it work, so far the only thing it does is load the data corresponding to each select but separately. **//Carga los da...
asked by 09.01.2018 / 21:07
1
answer

Pass data via ajax and php to an HTML table

I try to fill a table in html from a query ajax and php . Problem: I want to get the dependencies of a MySQL table (I only have one added). But in php I input an array to return it to me in the ajax. clases....
asked by 29.12.2017 / 03:38
1
answer

Pass data from javascript to php using ajax when reloading the page

Good. I have the following code: <head> <script src="./jquery-latest.min.js"></script> <script> var jash = window.location.hash; var url = "datos.php"; $.ajax({ type: 'POST', url: url, data: {tuVariable:jas...
asked by 23.01.2018 / 01:53
1
answer

Reading of html table with js

I have a table that is filled with an information textbox that has the excel format (the line breaks with the charcode 10 and the tab with the charcode 9), this information is transformed into a table so that later it registers in a database wit...
asked by 08.12.2017 / 17:53
1
answer

extract data from array in javascript

I have a function in ajax where I get data in the success function editarUsuario(id_usu) { alert(id_usu); $.ajax({ url: "EditServlet", type: "GET", data: { id:id_u...
asked by 09.12.2017 / 23:49