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

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: