Blog Post RSS ?

Blogs » JavaScript & CSS » Auto complete comes of age
 

Auto complete comes of age

by Simon Willison

Google Suggest, the latest bag of tricks from Google Labs, is a perfect example of how modern web applications are breaking out of the mold and becoming more interactive. It uses XMLHttpRequest to run queries against Google as yout type, proving an auto-complete box with the most likely results. As you might expect from Google, it’s slick, intuitive and fits right in to their bare-bones interface.

The JavaScript that powers the feature is pretty well obfuscated, so if you want to see how it works your best bet is to install the Firefox/Mozilla Live HTTP Headers extension, set it up as a sidebar and watch what happens when you use the site. Basically, for every character you type it retrieves a page like this and evals the resulting string of JavaScript. It’s the same kind of technique they use for Gmail.

XMLHttpRequest is a technology with amazing potential, and this is just the tip of the iceburg. The web’s about to get a whole lot richer.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Ping.fm
  • Twitthis

Related posts:

  1. Could you Build a Complete Web Site in 24 Hours? The FullCodePress competition is back in Sydney for 2009. This...
  2. How to Build an Auto-Expanding Textarea jQuery Plugin, Part 1 Auto-expanding HTML textarea boxes have become popular on many web...
  3. How to Build an Auto-Expanding Textarea jQuery Plugin, Part 2 Auto-expanding HTML textarea boxes have become popular on many web...
  4. How to Build an Auto-Expanding Textarea jQuery Plugin, Part 3 Auto-expanding HTML textarea boxes have become popular on many web...
  5. Is GMail Finally Complete? GMail has been labeled a beta product for more than...

This post has 40 responses so far

Sponsored Links

SitePoint Marketplace

Buy and sell Websites, templates, domain names, hosting, graphics and more.

Follow SitePoint on...