Practical and Useful Information For Enhancing Your Site

Ajax Demo

Here, thanks to Dynamic Drive, is an Ajax application that displays a selection of external content on a page inside a DIV using CSS tabs:

This is some default tab content, embedded directly inside this space and not via Ajax. It can be shown when no tabs are automatically selected, or associated with a certain tab, in this case, the first tab.

Because of Ajax security features, the external content must be from the same domain as the calling page. Here are some of the features of this Ajax application, that could be adapted to other uses:

This may not be the best application to display the versatility of Ajax because much the same thing could be accomplished by using an iFrame (inline frame). A better example might be an Ajax application which displays the city and state when a ZIP code is entered. The Guide to Using AJAX and XMLHttpRequest, written by Bill Bercik, includes step-by-step instructions, and all the files are available for download.