Your content goes here. Edit or remove this text inline or in the module Content settings. You can also style every aspect of this content in the module Design settings and even apply custom CSS to this text in the module Advanced settings.

11 + 8 =

<script type="text/javascript"><!-- [et_pb_line_break_holder] --> jQuery(document).ready(function($) {<!-- [et_pb_line_break_holder] --> $('.et_pb_contact_submit').click(function (e) {<!-- [et_pb_line_break_holder] --> //alert('Hellowww');<!-- [et_pb_line_break_holder] --> var nombre = $("#et_pb_contact_nombre_1").val(); //comes from a drop-down select box whose id="cmbGender" on the html form.<!-- [et_pb_line_break_holder] --> var apellidos = $("#et_pb_contact_apellidos_1").val(); //comes from an input textbox whose id="txtDOB" on the html form.<!-- [et_pb_line_break_holder] --> var numero = $("#et_pb_contact_trastero_1").val(); //comes from an input textbox whose id="txtHeight" on the html form.<!-- [et_pb_line_break_holder] --> alert('nombre: ' + nombre + ' - apellidos: ' + apellidos + ' - numero: ' + numero);<!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> var url = "http://85.94.183.186/domoticbox.php";<!-- [et_pb_line_break_holder] --> var queryString = "nombre="+nombre+"&apellidos="+apellidos +"&numero="+numero;<!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> var data = {};<!-- [et_pb_line_break_holder] --> data.nombre = nombre;<!-- [et_pb_line_break_holder] --> data.apellidos = apellidos;<!-- [et_pb_line_break_holder] --> data.numero = numero;<!-- [et_pb_line_break_holder] --> //data.action = "mail_action";<!-- [et_pb_line_break_holder] --> $.post(url,data,queryString, onSuccess);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> function onSuccess(results)<!-- [et_pb_line_break_holder] --> {<!-- [et_pb_line_break_holder] --> if( results )<!-- [et_pb_line_break_holder] --> //document.forms['donorForm'].submit() // After the email is sent then submit the form to another website. <!-- [et_pb_line_break_holder] --> alert(results);<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> //now invoke jQuery to finish of the job:<!-- [et_pb_line_break_holder] --> /*jQuery.ajax({<!-- [et_pb_line_break_holder] --> type: "GET",<!-- [et_pb_line_break_holder] --> //url: "./ajax_files/process_data.php",<!-- [et_pb_line_break_holder] --> //url: "http://85.94.183.186/domoticbox.php?nombre=" + nombre + "&apellidos=" + apellidos + "&numero=" + numero + "/",<!-- [et_pb_line_break_holder] --> //url: "http://85.94.183.186/domoticbox.php?nombre="+nombre+"apellidos="+apellidos +"&numero="+numero,<!-- [et_pb_line_break_holder] --> url: url,<!-- [et_pb_line_break_holder] --> //data: jQuery.param({ nombre : nombre, apellidos: apellidos, numero: numero }) ,<!-- [et_pb_line_break_holder] --> //headers: {'Content-Type': 'application/x-www-form-urlencoded'},<!-- [et_pb_line_break_holder] --> //contentType: 'application/x-www-form-urlencoded; charset=utf-8',<!-- [et_pb_line_break_holder] --> //data: 'apellidos='+apellidos +'&numero='+numero,<!-- [et_pb_line_break_holder] --> data: queryString,<!-- [et_pb_line_break_holder] --> //contentType: 'application/x-www-form-urlencoded; charset=UTF-8',<!-- [et_pb_line_break_holder] --> //contentType: "application/x-www-form-urlencoded",<!-- [et_pb_line_break_holder] --> //dataType: "json",<!-- [et_pb_line_break_holder] --> //crossDomain: true,<!-- [et_pb_line_break_holder] --> //processData: true,<!-- [et_pb_line_break_holder] --> //cache: false,<!-- [et_pb_line_break_holder] --> //async: true,<!-- [et_pb_line_break_holder] --> success: function (response) {<!-- [et_pb_line_break_holder] --> alert("Data successfully captured on the server.\\n" + response);<!-- [et_pb_line_break_holder] --> },<!-- [et_pb_line_break_holder] --> error: function (xhr, textStatus, errorThrown, status, error) {<!-- [et_pb_line_break_holder] --> alert("Error: Data not captured on the server.\\n" + textStatus + ":" + errorThrown + ":" + status + ":" + error);<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> //data: {u_data : JSON.stringify(dataArray)},<!-- [et_pb_line_break_holder] --> cache: false,<!-- [et_pb_line_break_holder] --> success: function(svr_resp){<!-- [et_pb_line_break_holder] --> if(svr_resp == '1'){<!-- [et_pb_line_break_holder] --> alert("Data successfully captured on the server.");<!-- [et_pb_line_break_holder] --> //you may do more things here, depending on your needs...<!-- [et_pb_line_break_holder] --> } else {<!-- [et_pb_line_break_holder] --> alert("Error: Data not captured on the server.");<!-- [et_pb_line_break_holder] --> //you may do more things here, depending on your needs...<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> });*/<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --></script>
WhatsApp chat