Check out the new livesearch function over on the right!
Ever since the last major redesign, I’ve really wanted to add a “livesearch” function to the site. Up until now, all site searching was handled through Google via the “site search” box over on the right. It works okay, but the Google search page is pretty ugly in addition to serving up ads and some not-so relevant results at times.
What I wanted to do was something akin to what Dunstan’s amazing 1976design blog – a live search that returns dynamic results that change according to what you type into the box. If you’ve ever used the iTunes search function, then you’ll know right away what I’m talking about.
A quick glance around the internet reveals that a few people have implemented a live search for movable type, and a couple have even gone as far as to release some scripts into the public domain. While I was tempted to copy and modify some of those scripts, as the saying goes, nothing beats doing it yourself. Thus, this past rainy Saturday, rather than spending hours trying to figure out how I was going to fit all my clothes into such a small number of boxes, I finally sat down, stopped procrastinating, and wrote a live search script that would do exactly what I wanted.
Did you try out the new spring stylesheet yet?
You can see it running over on the sidebar on the right of the main page. Scroll down about 1/3 of the page, and just where you see the “Bamboo Widgets”, click on the box titled “Blog Live Search”. Start typing your query into the box and voila! you should see your search results appear as if by magic (AJAX magic, baby) right underneath. Cool, huh?! The more terms you type, the more refined the results will get.
There are still a few quirks to work out, but it’s pretty much the effect I was after. Please give it a try and let me know what you think about it – do you like it, hate it, does it not work for you/your browser, etc?
And that’s it! Right now it’s a beautifully cool summer evening in the hood – sitting at the table by the open window, crisp breeze blowing through the house, AfterHoursDjs.org playing some absolutely kicking jams, just about everything crossed off my “To Do” list, and a relatively easy day at the office waiting for me tomorrow to top it all off.
Life isn’t bad at the moment.