Powered by Twitter.com. See the tips archive here.
Powered by www.flickr.com. See the photo archive here.
Notice: This website, specifically this post, and the views contained may not necessarily be the views of the author's employers, friends or family.

Hell Yeah Bitch gets “Live Searching”

Google Suggest has nothing on us!

I know it doesn’t look any different, but if you give the search field on the right (it should already be in focus for you) a try then you will see the great new functionality.


How did I do this? Well I must give credit to LiveSearch, which is a nice little collection of javascript that uses the XMLHTTPRequest (I’ve talked about this before.), which is all the craze now with us webhead types. All I had to do was write a little PHP script that searches the site’s database and returns a list of entries with their links. The javascript and some CSS does the rest. Pretty cool huh?

Head to the site and give a shot on your site. If you have problems writing the PHP script, I’ll be happy to share mine or any other help I can give.

Now, I need to get back to that javascript code so I can understand it better and start using this technology a bit more.

(Also, if you notice any bugs, help me out and drop me a line.)

  • Yeah, its a pretty nice little searching doo-hickey. I was adding it to the redesign of artfinale.com I'm working on, and I thought this would be nice on my site. So with a quick re-write of the search script, and its up.

    Also, you can now increase the text size freely without any style hiccups. The search box bug is fixed.
  • danielcole
    That's pretty nifty. And Quick - I didn't see any lag on when it was updating.
    You want comments? I've got one: I usually surf with the text 1 size bigger than default because small text hurts my eyes. Everything still lays out correctly when bigger except the search textbar - it flows outside of its container. I think removing the size="20" and adding style="width: 100%" will make it scale regardless of the browser's font size. The search results window that pops up does scale nicely.
blog comments powered by Disqus