1$(document).ready(function(){ 2 $("#form_subscribir").submit(function(e) { 3 e.preventDefault(); 4 enviar_subscripcion(); 5 }); 6}); 7 8function enviar_subscripcion(){ 9 var form_contacto = $("#form_subscribir"); 10 $.ajax({ 11 url: "fuentes/crear_subscripcion.php", 12 type: "POST", 13 data:form_contacto.serialize(), 14 dataType: "json", 15 success: function(data){ 16 if(data.resultado == "OK"){ 17 setCookie("usu_email", $("#subs_email").val(), 365); 18 ver_mensaje("Solicitud registrada!!","",""); 19 }else{ 20 alert(data.resultado); 21 } 22 }, 23 error: function(){ 24 alert("Error al recibir los datos. Vuelva a intentarlo de nuevo por favor"); 25 }, 26 async: false, // La petición es sÃncrona 27 cache: false // No queremos usar la caché del navegador 28 }); 29 30} 31
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.