Chapter 16: Ajax Toolkits

Return to Chapter 16


To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Using the Container Utility

See it run: Using the Container Utility

Script 16.10

This is the HTML for the Weather module. We've hardcoded it in this case, but in a production application it would be dynamically generated.

Script 16.11

This CSS styles the main page and the pop-up dialog.

Script 16.12

This JavaScript calls the container and makes it work.