04-08-2009, 05:04 AM
Here's the url:
What do I need to do in order to make it work in IE7?
Many, many thanks!:D
04-08-2009, 08:46 AM
It's not working in FF2 either. I don't see any validation script on your site.
Sorry, I missed it.
04-08-2009, 09:07 AM
HUH? The validation is right there in the file. Code such as:
if (form.FirstName.value.match(justWhiteSpace)) error(form.FirstName,"First name is required.")
if (form.LastName.value.match(justWhiteSpace)) error(form.LastName,"Last name is required.")
if (!form.email.value.match(validEmail)) error(form.email,"Please enter a valid email address.")
if (form.comments.value.match(justWhiteSpace)) error(form.comments,"A comment is required.")
It certainly is a very complex set of validation for such a simple little form, so I assume it's some sort of generic code lifted en masse for the purpose.
It works, mostly, in FF3. I had it submit the form one time even though I had no email address given. A glitch of some kind.
AHHH! Found it.
MSIE says "object does not support this property or method" for the line:
And, indeed, the MSIE reference docs do *NOT* list getElementsByClassName as a method, anyplace.
So...back to the drawing board, a little. Should be easy enough to work around this. Get all the relevant elements by some other means (by tag name?) and then just check the .className property for a match.