O'Reilly logo

The Book of JavaScript, 2nd Edition by thau!

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Suggest Application for Translation

Let's apply what we've learned so far to another example of using XML with Ajax. Google Suggest is a very fancy web application, with many interesting features that help it react quickly to user queries. As shown in Figure 15-4, Google Suggest provides suggested searches as you type letters into the search box. Although the JavaScript I'll describe in this section is not nearly as advanced as what you see in Google Suggest, it should help to demonstrate how Google Suggest works.

Figure 15-10 shows a simplified suggest application that translates English words into Italian. The figure shows how things look in Internet Explorer after I type bo. On the left side you see a list of the first ten English ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required