AJAX example -- finishing a word for you
Basically, whenever a keystroke happens, data is sent to a request
(differs depending on which browser is used). This uses XMLHTTP to
communication between the browser and the server.
The server-side program invoked here is quite simple:
echo "Content-type: text/html"
grep ^$1 ../words|head -3
../words is just a word list
(such as this from FRELI)