CDB cat dog-egories:
      

December 13, 2004

Note: CogDogBlog has a new WordPress powered home at http://cogdogblog.com/. All entries from this version have been moved there, so as a guide dog service try finding this article in its new home by title search.

Dissecting the Code: Google Suggest

Found surfing RSS feeds of someone else's del.icio.us tagged bag... If you've not come across the beta of Google's new feature, take a peek at Google Suggest, which works like autocomplete by responding with common/popular search queries based on the first few letters you type in the search field.

What do you think? Dose of good, evil, or apathy?

Anyhow, Adam Stiles opened up the JavaScript scope to detail how this works..

Google's Suggest feature is lighting up the blogosphere these days. It functions as like autocomplete for your search box, where Google attempts to determine what you are searching for and gives you suggestions. Web tinkerer that I am, I had to dig in a little and see how this works.

At its simplest, Google Suggest is javascript code that looks at what you are typing in the Google search box. When you press a key, GS phones home and passes the current contents of the search box. The server returns some suggestions are then displayed to the user. The javascript code is a little obfuscated, more to keep the size down than to obscure the contents.

Good hacks abound!

blogged December 13, 2004 09:11 PM :: category [ pile ]
Comments About "Dissecting the Code: Google Suggest"
RSS Feed for comments on this entry
RSS Feed for all CDB comments
Spammers Have Force Our Hands...
spamroach.jpg
Note: Those nasty blog-spamming roaches have forced us to take action to prevent their spread- all entries made to this blog will remain open for comments for 30 days after the original posting date. After that, it is old news anyhow, correct?

If you really need to make contact with the chief dog around here, please submit a request via our feedback center