javascript tweaking

I’ve added JavaScript to validate the fields in the email form instead of having the server do it. I also have a snazzy little regular expression to make sure the email address is valid. I have received a few emails with invalid email addresses and it’s annoying because I can’t reply to them. This should help a little bit, as long as they don’t have typos which still keep the email address valid.

I also made a few minor changes to the JavaScript guessing game to make it work in Netscape 4.7x. You can’t have the “type” attribute in the <script> tag, even though HTML 4.01 requires it. As a result, both the email form and the guessing game do not have valid HTML anymore. It’s more important for the pages to work in Netscape 4.7x though, so I’ll just have to live with it.

While working on all of the JavaScript additions I’ve come to appreciate Mozilla even more, thanks to the JavaScript Console (In Tools -> Web Development -> JavaScript Console.) Have I mentioned that I really like Mozilla? (And I haven’t even discussed the DOM Inspector yet)

My motorcycle is up for sale. Hopefully it sells quickly.

If have any problems with the changes I’ve made to the email form, you can email me at dan (at) hersam dot com. I won’t tell you to use the email form if you are having problems with it, unlike the telephone company who tells you to

…report these problems by calling 800-573-1311.

Funny, isn’t it, that one of the problems they list is

Can’t call out or can’t receive calls.

What do you do if you don’t have internet access, or you only have dial-up, which isn’t working because you can’t call out?

Comments are closed