HTML and CSS Reference
In-Depth Information
Listing 4.18. Auto-complete interface for the chat application
Note that the chat application code is entirely generic—it doesn't matter what application
has embedded it as long as it can return a list of words when sent a message in the correct
form. The corresponding code in the planner application is necessarily specific to the plan-
ner. The following listing shows a new method for the planner object; add it to the plan-
ner.js file.
Listing 4.19. Word-completion service in the planner application
Search WWH ::

Custom Search