FreeTextBox + Scriptaculous + Prototype Window Class = Goodness

Recently, I've needed to add some functionality that includes the FreeTextbox control and modal windows.  One of the things I've needed was to for this blog; I needed to be able to insert a reference to a code snippet easily.  While I'm typing, like now, I want to be able to click a simple button, pull up a window and search for a snippet by description.  This involves displaying a window modally, showing a textbox and using the autocompleter concept to search for snippets.  The example I'm posting here, which you can also test drive here, shows a simple custom button(the one that looks like this ) added to the FreeTextBox control, that displays a modal window and allows a user to search for something.  The example has "stupid" data, 10 items in the list that are always returned no matter what's typed in, but the possibilities could be anything(ie. a database query or a webservice query). 

 
Author: , 0000-00-00