Google Suggest

Google Suggest (http://labs.google.com/suggest) is just like the usual Google search engine, but as you type a word into the search field, it presents a list of frequently searched-for terms beginning with the letters you have already typed, along with the number of results you'd get if you searched for each of those terms. For example, Figure 15-4 shows what happens when I commit the narcissistic act of typing my name into Google's search field. Each time I type a letter into the search field, Google Suggest gets information from Google's webserver and updates the page. In typical Ajax fashion, this trip to the server occurs invisibly.

Figure 15-4. Finding myself in Google Suggest

In this chapter, we will use XML to create an Ajax ...

Get The Book of JavaScript, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.