function attachValidationEvents() { jQuery("#supportrequest *[name='supportrequest[firstname]']").blur(function() { var field = jQuery(this); var fieldVal = encodeURIComponent(field.val()); if(field.attr("type") == "radio" || field.attr("type") == "checkbox") { if (field.attr("checked") == "") { fieldVal = ""; } } var loading = jQuery("#supportrequest #loading_firstname"); var result = jQuery("#supportrequest #result_firstname"); loading.show(); result.hide(); var url = "/index.php?&id=11&L=1&randomID=881f840b082a19cea5c433fe673692c7&field=firstname&uploadedFileName=&eID=formhandler&value="; url = url.replace("value=", "value=" + fieldVal); result.load(url, function() { loading.hide(); result.show(); isFieldValid = false; if(result.find("SPAN.error").length > 0) { result.data("isValid", false); } else { isFieldValid = true; result.data("isValid", true); } }); }); jQuery("#supportrequest *[name='supportrequest[lastname]']").blur(function() { var field = jQuery(this); var fieldVal = encodeURIComponent(field.val()); if(field.attr("type") == "radio" || field.attr("type") == "checkbox") { if (field.attr("checked") == "") { fieldVal = ""; } } var loading = jQuery("#supportrequest #loading_lastname"); var result = jQuery("#supportrequest #result_lastname"); loading.show(); result.hide(); var url = "/index.php?&id=11&L=1&randomID=881f840b082a19cea5c433fe673692c7&field=lastname&uploadedFileName=&eID=formhandler&value="; url = url.replace("value=", "value=" + fieldVal); result.load(url, function() { loading.hide(); result.show(); isFieldValid = false; if(result.find("SPAN.error").length > 0) { result.data("isValid", false); } else { isFieldValid = true; result.data("isValid", true); } }); }); jQuery("#supportrequest *[name='supportrequest[email]']").blur(function() { var field = jQuery(this); var fieldVal = encodeURIComponent(field.val()); if(field.attr("type") == "radio" || field.attr("type") == "checkbox") { if (field.attr("checked") == "") { fieldVal = ""; } } var loading = jQuery("#supportrequest #loading_email"); var result = jQuery("#supportrequest #result_email"); loading.show(); result.hide(); var url = "/index.php?&id=11&L=1&randomID=881f840b082a19cea5c433fe673692c7&field=email&uploadedFileName=&eID=formhandler&value="; url = url.replace("value=", "value=" + fieldVal); result.load(url, function() { loading.hide(); result.show(); isFieldValid = false; if(result.find("SPAN.error").length > 0) { result.data("isValid", false); } else { isFieldValid = true; result.data("isValid", true); } }); }); jQuery("#supportrequest *[name='supportrequest[country]']").blur(function() { var field = jQuery(this); var fieldVal = encodeURIComponent(field.val()); if(field.attr("type") == "radio" || field.attr("type") == "checkbox") { if (field.attr("checked") == "") { fieldVal = ""; } } var loading = jQuery("#supportrequest #loading_country"); var result = jQuery("#supportrequest #result_country"); loading.show(); result.hide(); var url = "/index.php?&id=11&L=1&randomID=881f840b082a19cea5c433fe673692c7&field=country&uploadedFileName=&eID=formhandler&value="; url = url.replace("value=", "value=" + fieldVal); result.load(url, function() { loading.hide(); result.show(); isFieldValid = false; if(result.find("SPAN.error").length > 0) { result.data("isValid", false); } else { isFieldValid = true; result.data("isValid", true); } }); }); jQuery("#supportrequest *[name='supportrequest[shortDesc]']").blur(function() { var field = jQuery(this); var fieldVal = encodeURIComponent(field.val()); if(field.attr("type") == "radio" || field.attr("type") == "checkbox") { if (field.attr("checked") == "") { fieldVal = ""; } } var loading = jQuery("#supportrequest #loading_shortDesc"); var result = jQuery("#supportrequest #result_shortDesc"); loading.show(); result.hide(); var url = "/index.php?&id=11&L=1&randomID=881f840b082a19cea5c433fe673692c7&field=shortDesc&uploadedFileName=&eID=formhandler&value="; url = url.replace("value=", "value=" + fieldVal); result.load(url, function() { loading.hide(); result.show(); isFieldValid = false; if(result.find("SPAN.error").length > 0) { result.data("isValid", false); } else { isFieldValid = true; result.data("isValid", true); } }); }); jQuery("#supportrequest *[name='supportrequest[condition]']").blur(function() { var field = jQuery(this); var fieldVal = encodeURIComponent(field.val()); if(field.attr("type") == "radio" || field.attr("type") == "checkbox") { if (field.attr("checked") == "") { fieldVal = ""; } } var loading = jQuery("#supportrequest #loading_condition"); var result = jQuery("#supportrequest #result_condition"); loading.show(); result.hide(); var url = "/index.php?&id=11&L=1&randomID=881f840b082a19cea5c433fe673692c7&field=condition&uploadedFileName=&eID=formhandler&value="; url = url.replace("value=", "value=" + fieldVal); result.load(url, function() { loading.hide(); result.show(); isFieldValid = false; if(result.find("SPAN.error").length > 0) { result.data("isValid", false); } else { isFieldValid = true; result.data("isValid", true); } }); }); jQuery("#supportrequest *[name='supportrequest[application]']").blur(function() { var field = jQuery(this); var fieldVal = encodeURIComponent(field.val()); if(field.attr("type") == "radio" || field.attr("type") == "checkbox") { if (field.attr("checked") == "") { fieldVal = ""; } } var loading = jQuery("#supportrequest #loading_application"); var result = jQuery("#supportrequest #result_application"); loading.show(); result.hide(); var url = "/index.php?&id=11&L=1&randomID=881f840b082a19cea5c433fe673692c7&field=application&uploadedFileName=&eID=formhandler&value="; url = url.replace("value=", "value=" + fieldVal); result.load(url, function() { loading.hide(); result.show(); isFieldValid = false; if(result.find("SPAN.error").length > 0) { result.data("isValid", false); } else { isFieldValid = true; result.data("isValid", true); } }); }); jQuery("#supportrequest *[name='supportrequest[kkhp]']").blur(function() { var field = jQuery(this); var fieldVal = encodeURIComponent(field.val()); if(field.attr("type") == "radio" || field.attr("type") == "checkbox") { if (field.attr("checked") == "") { fieldVal = ""; } } var loading = jQuery("#supportrequest #loading_kkhp"); var result = jQuery("#supportrequest #result_kkhp"); loading.show(); result.hide(); var url = "/index.php?&id=11&L=1&randomID=881f840b082a19cea5c433fe673692c7&field=kkhp&uploadedFileName=&eID=formhandler&value="; url = url.replace("value=", "value=" + fieldVal); result.load(url, function() { loading.hide(); result.show(); isFieldValid = false; if(result.find("SPAN.error").length > 0) { result.data("isValid", false); } else { isFieldValid = true; result.data("isValid", true); } }); }); } jQuery(function() { attachValidationEvents(); });
Sie haben Fragen zu unseren Produkten?

Kontakt
Problem
Produkt
Gewünschte Antwortart
Sonstige Beschreibung