Hey guys. Thanks for accepting me. I need help, I am developing a - TopicsExpress



          

Hey guys. Thanks for accepting me. I need help, I am developing a project in which I have a html table and want to send data to the table to the SQL SERVER database, the fact is that I tried to do this using AJAX and JQUERY. But when you click on the button that calls the AJAX function, this does not run. Ive checked my code several times and I know it can not be happening... This its my code: $(function () { $([id*=btnGuardar]).bind(click, function () { alert(ENTRÓ) var articulos = {}; for (var i = 1; i < document.getElementById(Art).rows.length; i++) { var valor = document.getElementById(Art).rows[i]; articulos.Nombre = valor.cells[0]; articulos.Tipo = valor.cells[1]; articulos.Cant = valor.cells[2]; articulos.Uni = valor.cells[3]; articulos.Desc = valor.cells[4]; articulos.Obs = valor.cells[5]; alert(); $.ajax({ type: POST, url: FORMULARIO.aspx/SaveUser, data: {articulos: + JSON.stringify(articulos) + }, contentType: application/json; charset=utf-8, dataType: json, success: function(response) { alert(User has been added successfully.); window.location.reload(); } }); return false; }); });
Posted on: Fri, 04 Apr 2014 14:17:57 +0000

Trending Topics



MOMENTO
Una mañana un joven recibió una llamada de su ex-novia, en la
TRUNG BÌNH SỐ LƯỢT NGƯỜI GHÉ THAM TƯỜNG FACEBOOK
Selling some New and Used Hydroponic equipment for South Florida

Recently Viewed Topics




© 2015