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 ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.