
04/07/2016, 11:59
|
 | | | Fecha de Ingreso: agosto-2009 Ubicación: Malaga, Ceuta, España....
Mensajes: 283
Antigüedad: 15 años, 6 meses Puntos: 10 | |
Respuesta: Ajax con post no envía datos... Cita:
Iniciado por MaNuX0218 Prueba de esta manera haber que tal:
Código Javascript :
Ver original$.ajax({ type:"POST", url:"sendmsg.php", data: { nombre: $("#nombre").val(), email: $("#email").val(), mensaje: $("#mensaje").val() }, success:function(){ $('#boton_envio').hide(); $('.enviook').css('display','block'); $('.enviook').fadeOut(5000,function(){ $('.boton_envio').fadeIn('slow'); }); $('#respuesta').load('sendmsg.php'); $("#nombre").val(""); $("#email").val(""); $("#mensaje").val(""); }, //Fin function Success error:function(){ $('.boton_envio').hide(); $('.errorenvio').css('display','block'); $('.errorenvio').fadeOut(5000,function(){ $('.boton_envio').fadeIn('slow'); }); } //Fin function Error });
Saludos. Increible..... mismo error.. no recoge las variables... Sigue sin funcionar...
Alguna idea de porque puede ser??? |