LeKuchen: Eingabeüberprüfung in XSLT Formularen mittels JavaScript

Beitrag lesen

Nachtrag: Habe da was gefunden....

  
  
function ReqFieldValidatorIsValid(id) {  
return (GetValue(id)!='');  
}  
function GetValue(id) {  
    var control;  
    control = document.getElementById(id);  
    if (typeof(control.value) == "string") {  
        return control.value;  
    }  
    if (typeof(control.tagName) == "undefined" && typeof(control.length) == "number") {  
        var j;  
        for (j=0; j < control.length; j++) {  
            var inner = control[j];  
            if (typeof(inner.value) == "string" && (inner.type != "radio" || inner.status == true)) {  
                return inner.value;  
            }  
        }  
    }  
    else {  
        return GetValueRecursive(control);  
    }  
    return "";  
}  
function GetValueRecursive(control)  
{  
    if (typeof(control.value) == "string" && (control.type != "radio" || control.status == true)) {  
        return control.value;  
    }  
    var i, val;  
    for (i = 0; i<control.children.length; i++) {  
        val = GetValueRecursive(control.children[i]);  
        if (val != "") return val;  
    }  
    return "";  
}