Safari javascript validation problem

November 19, 2008

This seems to becoming more of a javascript blog lately …

Anyway, I was editing some javascript validation code that was written by someone else, and it wouldn’t work in Safari although it was working fine in FF and IE. The quirky thing about the validation code was it was making sure ALL form variables except specifically-excluded ones had a value (I normally do it the other way around, check specific variables have a value) and, it turned out, the problem with Safari was unchecked radio buttons get submitted as blank values – in IE and FF they just don’t get sent in the http post request. Added those to the list of variables excluded and it worked

Leave a Reply