Scripsit frank:
Quote:
Google 'javascript + form validation'. There are plenty copy and
paste examples. |
Most of them worse than crap, of course. Everybody can put up a web page
that presents some HTML markup, CSS stylesheet, JavaScript code, or
something else and example. Everybody often does that, typically with
little clue of anything.
_Especially_ a topic like "alphabets [i.e., alphabetic characters] and
numbers" is _so_ easily mishandled by people who don't even know that
there are different alphabets and different sets of numbers. Moreover,
there's almost always a reason to impose _additional_ restrictions.
Quick test: what happens when "é" ("e" with acute accent) is entered?
Will it crash the form handler, or generate completely bogus data, or
just get rejected as nonalphanumeric (despite being very much
alphanumeric in reality, though not always matching some additional
constraints).
Reading a JavaScript book, consulting JavaScript FAQs (if they still
exist and look reasonable), and eventually asking for specific help in
the specific comp.lang.javascript group would be my way. Everyone is
entitled into choosing his own way and taking a road to the land of bugs
and oddities.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/