The code on my web site is obsolete and no longer supported by the creating company. Can anyone help me correct the following section
// CHECK NUMERIC FORMAT // provide one of the following: // min=q; if the value is an ID, and you want it > q to be valid.. // max=r; if the value is an ID, and you want it < r to be valid.. if ((e.type == "text" || e.type == "textarea") && (e.numeric || (e.min != null) || (e.max != null)) && !isblank(e.value)) { var v = parseFloat(e.value); var v2 = e.value.replace(/,/, ""); if ((isNaN(v)) || (isNaN(v2)) || ((e.min != null) && (v < e.min)) || ((e.max != null) && (v > e.max))) { errors += "- The field " + getDisplay(e) + " must be a number"; errorsf += "- Le champ " + getDisplay(e) + " doit Ítre un nombre"; if (e.min != null) { errors += " that is greater than " + e.min; errorsf += " c'est plus grand que " + e.min; } if (e.max != null && e.min != null) { errors += " and less than " + e.max; errorsf += " et moins que " + e.max; } else if (e.max != null) { errors += " that is less than " + e.max; errorsf += " c'est moins que " + e.max; } errors += ".\n"; errorsf += ".\n"; } }
In the latest version of Safari (and I am told Chrome) this code rejects all inputs with the error message "The field must be a number etc." It was suggested that I remove this check which I did. This resulted in a different type of error message "Element Title is undefined in Attributes"
Thanks