updating the mission trip forms submission code
This commit is contained in:
parent
e497d928f3
commit
b0dfc4e3b5
|
@ -12,11 +12,16 @@
|
||||||
data.append("age", age);
|
data.append("age", age);
|
||||||
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.onreadystatechange = function() {
|
||||||
|
if (this.readyState == 4 && this.status == 200) {
|
||||||
|
window.location.href = '/thankyou/';
|
||||||
|
}
|
||||||
|
};
|
||||||
xhr.open("POST", "https://n8n.tfcconnection.org/webhook/mt-application");
|
xhr.open("POST", "https://n8n.tfcconnection.org/webhook/mt-application");
|
||||||
xhr.send(data);
|
xhr.send(data);
|
||||||
console.log(data);
|
console.log(data);
|
||||||
console.log("Hallo!");
|
console.log("Hallo!");
|
||||||
return false;
|
/* return false; */
|
||||||
}
|
}
|
||||||
|
|
||||||
function calculate_age(dob) {
|
function calculate_age(dob) {
|
||||||
|
|
Loading…
Reference in a new issue