You have the wrong newsgroup. You want comp.lang.javascript. If you search
the Web, there are many exampels of using AJAX with, say JSON, for
completeing a textbox from a database lookup, asynchronously. It sounds like
you can use one of those, but, rather htan tying the request to a keystroke
event, tie it to a lostfocus event in javascript. -Ike