-
Book Overview & Buying
-
Table Of Contents
Microsoft AJAX Library Essentials: Client-side ASP.NET AJAX 1.0 Explained
By :
We’ll create and test the Timer and EnhancedTextBox in the following step-by-step exercise, and we’ll discuss more details about them afterwards. We will also create a helper class named Dictionary, which stores the dictionary of known words used by EnhancedTextBox for word auto-completion, and performs keyword matching through a function named getMatchingItems().
Figure 7-4 shows the demo page in action: after typing the letters “Bo” the text was auto-completed to the first match, “Bobby”. When hitting the down arrow on the keyboard, the text was auto-completed to the next known name to start with “Bo,” which according to our current dictionary is “Bogdan”.
![]() |
Figure 7-4 EnhancedTextBox in action
1. Open the http://localhost/Atlas/ project in Visual Web Developer.
2. Create a new JScript File in your Scripts folder named Timer.js, and type the following code in.
// Register the AjaxTutorial namespace Type.registerNamespace...
Change the font size
Change margin width
Change background colour
