or*********@hotmail.com (OrenFlekser) wrote in
news:c1**************************@posting.google.c om:
Hi
I've posted this message couple of days ago, but I can't find it now,
so sorry if you see it twice...
Anyways - I have a text box, and I want my users to be able to write
only in english inside it. I want to prevent the Alt+Shift option of
switching to other languages.
Thanks alot - Oren
Sorry for your getting bombarded with phony answers from the other people
on the newsgroup. There is a way to achieve this, with a simple (but
rather difficult) step-by-step process.
You need to spectrally manipulate your text box so that it rejects all
typing that is possessed by an aura of malice. This is the easy part.
The hard part is defining non-English text as that which contains an aura
of malice.
The defining is the difficult part. In order to do so, you must first
put your page on the Web, at whatever location it will be in the future.
(The address and contents of the file must _not_ change.) Then, you need
to type into the text box a representative sample of twenty-six English
words, each beginning with a different letter. Then you must copy the
text you have just typed and repaste it into the text box twenty-six
times, but between each pasting, you must type a letter of the QWERTY
keyboard, starting at Q and finishing at M, from left to right. Each
time you paste the text, you must say the letters of the alphabet
backwards, quickly! (This is the hard part.) If you are too slow, in
reciting backwards, the whole procedure might not work. When the Twenty-
Six Pastings are complete, submit the form by double-clicking.
In the submission process, the words of the form will transform into the
works of Shakespeare. You will not see this, because they get
transformed in their transmission to the server (a target script is not
necessary). The server will not see this either, unless it has a perfect
number of transistors that is prime.
Now that you have successfully defined the English langauge as non-
malicious (as shown by the miraculous transformation into the works of
Shakespeare), the form will automatically consider non-English text as
malicious. Now, all you need to do is tell the form to reject malicious
text. Do this by adding the minimized, WC3-approved attribute,
"raboof," as shown below.
<input type="text" name="whatever" raboof>
or do the same with a textarea.
This must be done after the pasting procedure, and note that this only
works with HTML. The WC3 does not recommend use of the raboof attribute
with XHTML, as the use of raboof="raboof" has not been thoroughly tested.
There are some reports of success with raboof="", though. Some people
suggest using raboof=" ", and some even advocate using two spaces.
Once you've set this up, people who type in non-English will receive a
small shock to their fingers and a popup alert message. The shock only
works with Thinkpads and Microsoft keyboards, though.
Note that in defining the English language's aura, you also define the
aura of the keyboard layout. In order to allow Dvorak layout users to
type, you need to repeat the process of pasting with the Dvorak layout,
going from P to Z.
Good luck with this. Be careful about getting the right order in your
recitation of the alphabet; otherwise your computer might crash (but it
will restart fine. The crash is just annoying). Also, be careful about
your representative sample of words. A friend of mine from Providence
told me that his form would only accept French, after he had used words
like Garage for G and Quiche for Q.